-
1. Re: performance logging in tomcat or mod_jk
vcorrea Oct 10, 2011 9:48 PM (in response to jimyliu)Hi Jimy,
I would sugest that you analyse it with an jvm introspect tool. Im using byteman ( jboss.org/byteman ). You can write simple script to analyse when a class is istantiated. So if you have suspicious classes you can check its status on runtime. Hope that it can help
-
2. Re: performance logging in tomcat or mod_jk
jimyliu Oct 11, 2011 2:03 AM (in response to vcorrea)Hi Victor, Thanks for the suggestion. I will test with byteman to see if that can help my situation.
-
3. Re: performance logging in tomcat or mod_jk
rhusar Oct 11, 2011 8:20 AM (in response to jimyliu)Jimy, you can configure your mod_jk to log more and you will see what was happening with the request (the logging will be however too verbose so not a good fit for production for sure).
If there are chances you can reproduce than surely +1 for Byteman if you want to instrument a class/method to do additional logging.
BTW "But there is no hs_error" - did the JVM user have permission to write it there? Make sure you are not calling System.exit() ;-)
-
4. Re: performance logging in tomcat or mod_jk
vcorrea Oct 11, 2011 9:43 AM (in response to rhusar)Did you activated this option on your vm args?
XX:+HeapDumpOnOutOfMemoryError
?
-
5. Re: performance logging in tomcat or mod_jk
jimyliu Oct 11, 2011 11:22 AM (in response to rhusar)Yes, configure the mod_jk in debug mode is too heavy and not possible for the live system. We did try to examine our code to make sure there is no System.exit().
Since there is frequently GC activities before it crash and the heap size looked ok, we did not set this option XX:+HeapDumpOnOutOfMemoryError , either. But I will set it to see if that helps.
Thanks ,
Jimy
-
6. Re: performance logging in tomcat or mod_jk
rhusar Oct 11, 2011 11:28 AM (in response to jimyliu)So this issue happens relatively often in production env but you cant reproduce it? Ah, these are always hard to find in live system. Most likely this looks like memory issue, so make sure your system and your JVM are not running out of memory.
-
7. Re: performance logging in tomcat or mod_jk
jimyliu Oct 11, 2011 11:50 AM (in response to rhusar)Sorry, I type incorrectly, there is NO frequently GC activities before it crash. And yes, not reproducible either. :-(
Will definitely try the byteman if I can get the breaking point.