Reputation: 227
We have an enterprise java application(ear - few ejb's and a webapp) deployed on to weblogic 10 and using Sun java 5. The response time , CPU and memory usage is fine under few users of load but if we increase the concurrent users to >100 we see huge CPU spikes after some time (for eg:- load test with 100 users, the CPU goes to high after more than 30 minutes of test). We wanted to use hprof to profile the app and collect the statistics, but wanted to do it only when CPU is high i.e after 3o minutes of the test, is there a way to do it?
I cannot use jmap because we are using Sun java 5.
Upvotes: 0
Views: 550
Reputation: 533492
Huge spikes in CPU can be an indication the GC is running. If so, this will not show up in the profiler. You can run with the -verbosegc to see when the GC is running. (Or use jconsole)
Upvotes: 1
Reputation: 21795
If nothing else, a couple of options you could try are:
I appreciate the latter isn't everybody's cup of tea, but it will ultimately allow you to do what you want to do.
Upvotes: 0
Reputation: 75376
This is intrinsicly JVM specific. Hence you need to specify which JVM you use (Sun/BEA/IBM etc).
While figuring that out, consider setting the session timeout in your webcontainer down to 60 seconds and rerun the test.
Upvotes: 0