Hi,
I tried starting a local Tomcat 6 instance with the javaagent enabled, following the instructions for recording outside of eclipse. I'm on Win XP 32-bit, using Tomcat 6.0.29 on a 1.6.0_21 server VM. I have tomcat running as a service.
I just wanted to share a few problems I encountered (and their respective solutions):
1) Make sure the two parameters "-javaagent xyz" and "-agentpath" are on an individual line each in the java options from tomcat6w, otherwise Tomcat won't start up:
-javaagent:"path_to_recorder.jar"="path_to_conf"
-agentpath:"path_to_native_recorder.dll"
2) If you run into a "Could not reserve enough space for object heap" error starting up tomcat, you have to REDUCE the maximum Memory for the Tomcat JVM. I always run my tomcat instance with the maximum possible Memory I get it to start up with, which is around 1100MB on my box (32bit, remember). With the javaagent enabled the VM wasn't able to create an 1100MB Heap anymore, because the chronon-agent needs quite some memory that the VM has to provide, and that will not be available for the normal Heap.
In my case I had to reduce -Xmx from 1100M to 975M to get Tomcat up and running.
Note: This is irrelevant for 64-bit systems, because there's no "2GB per process" address space limitation.
Official Response
-
EMPLOYEE
I’m excited
WTP integration is now available, so you can record Tomcat on localhost directly from within Eclipse.
You can read about it here:
VIdeo demo here:
https://chrononsystems.com/video-r...
-
EMPLOYEE
I’m thankful
Sam,
Thanks a ton for sharing this with us.
I have moved this in the 'Idea' section where it fits better.
I particularly find the info about the memory used by the java agent interesting.
By default the eclipes plugin sets -Xmx to 1024mb when you run a program using the record button (unless you override the -Xmx by specifying it in the launch config or in the chronon preferences) and programs seem to work fine with that.
Maybe you can up your max memory for tomcat from 975m to 1024m too. -
-
I too could make this tool work on tomcat. I had to record outside Eclipse but it recored only couple of classes. I am not sure why rest of my classes were excluded though I am sure they were executed and also mentioned in the cofig file.
-
-
EMPLOYEE
I’m excited
Full WTP integration with tomcat and jboss support from within eclipse coming next week! -
-
EMPLOYEE
I’m excited
WTP integration is now available, so you can record Tomcat on localhost directly from within Eclipse.
You can read about it here:
VIdeo demo here:
https://chrononsystems.com/video-r... -
-
Even with the latest installation my earlier issue is not resolved. I have a simple servlet/jsp application which I am trying to record. Every single time, I see only only Servlet Filters being recorded but nothing else. I made sure many other classes are getting executed but some how the recording does not show these.
-
the way chronon decides which classes to automatically include is by looking at the 'projects' tab of the java build path of a project. Are those other classes in the build path as projects?
If not then you can manually specify which classes to include/exclude:
-
-
-
-
-
Sorry! It worked. It did record other classes too. I finally figured out from your video how to navigate to the code I am interested in.
Thanks a lot!! -
For recording manually on a remote server, the official docs do contain info on JBoss