-
1. Re: Java app slow performance within JMX
adrian.brock Sep 30, 2003 5:19 PM (in response to duncanferguson)Get a profiler and post some real numbers.
There is no way using a JMX invoke is three times slower
than db access.
Regards,
Adrian -
2. Re: Java app slow performance within JMX
duncanferguson Oct 1, 2003 3:36 AM (in response to duncanferguson)Thanks for the reply.
Im not sure you followed my first posting. I am not comparing the performance of db access to JMX invoke rather I am comparing the performance of the application inside and outside JBOSS.
If I am measuring the perfomance in terms of inserts to the db achieved, the number of inserts (after various transformations) goes from 1700 with the app running standalone to approx 500 when the app is running with JBOSS.
The only thing that shows up on the profiler is the DeploymentScanner which takes approximately 20% of CPU. This certainly doesnt account for the performance degradation by a factor of 3. Coudl there be something else i am not picking up on?
I realise there must be some performance reduction when running within JBOSS - my profiler shows lots of active threads that JBOSS kicks off (JNP Server, Session Scavengers etc). Is it just the case that the JVM is having to cope with this extra threading activity resulting in reduced performance when compared to running the app standalone with a dedicated JVM?
And if so has anyone noticed/documented this before? -
3. Re: Java app slow performance within JMX
adrian.brock Oct 1, 2003 4:32 AM (in response to duncanferguson)I was joking about the db, an application performing
db operations will spend most of its time in the db.
You are looking for waits (monitor contention) not cpu usage
the background threads should have no affect.
Do you do lots of classloading?
Regards,
Adrian -
4. Re: Java app slow performance within JMX
duncanferguson Oct 1, 2003 11:20 AM (in response to duncanferguson)All neccessary class loading is done in the initial period of the run. There is no monitor contention going on (according to JProfiler). Any other ideas? Thanks for your help.
-
5. Re: Java app slow performance within JMX
adrian.brock Oct 1, 2003 11:28 AM (in response to duncanferguson)Can you post the differences in runtime for the methods in original
and new apps.
If you can show real times rather than cpu times that would help.
Regards,
Adrian -
6. Re: Java app slow performance within JMX
duncanferguson Oct 2, 2003 8:52 AM (in response to duncanferguson)The problem seems to be because logging properties for hibernate are in someway being overridden by jboss's configuration.
This is resulting in all invocation hibernate makes of org.apache.commons.logging.Log.isTraceEnabled() returning true when runnning in JBOSS environment. Any idea of how to stop this? Thanks for your help. -
7. Re: Java app slow performance within JMX
adrian.brock Oct 2, 2003 9:00 AM (in response to duncanferguson)in conf/log4j.xml
<!-- Limit org.apache, org.jboss, org.mortbay, org.javagroups, etc. categories to INFO -->
Regards,
Adrian -
8. Re: Java app slow performance within JMX
duncanferguson Oct 2, 2003 9:19 AM (in response to duncanferguson)Cheers Adrian,
Just for the benefit of anybody else the actual bit that goes in log4j.xml is: