JBoss Developer: Message List - Thee Distinct and Important IssuesMost recent forum messageshttps://developer.jboss.org/community/jbossas/performance?view=discussionsJive Engage2004-09-29T20:09:06Z2004-09-29T20:09:06ZenRe: Thee Distinct and Important IssuesCristoforo Capriglione/people/chris.cppdo-not-reply@jboss.com2004-09-29T20:09:06Z2004-09-29T20:09:06Z<!-- [DocumentBodyStart:9b12a7ea-650e-40f5-8267-17013ddb140c] --><div class="jive-rendered-content"><p style="min-height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote">"treespace" wrote:<br/>I recently fixed three distinct issues and noticed a lot of posts that were related but never really got to the bottom of the problem. In particular a Out of Memory Error issue that has been a long-standing problem in all application servers where the heap actually looks fine: people exhaust hours tracking down phantom, non-existent leaks.<br/><br/>Rod Macpherson (a.k.a. treespace)<br/><br/><br/><strong>#1 Out of Processors</strong><br/><br/>JBoss sets the processors to 5 for HTTPS in the tomcat jboss-service.xml and that is sure to cause problems for those switching from HTTP over to HTTPS for testing: HTTP has 80 processors! It can catch you off guard but it is pilot error. You will not get an out of memory error ? happily it is an error not an exception.<br/><br/><strong>#2 Out of Connections</strong><br/><br/>If you run out of connections you will get "no managed connections". You will not get an out of memory error. Increase your connections and check for availability in 3.2.3 using this, I'll use the oracle class JBoss ships with as an example. I believe this is strictly 9.2 &gt; since if you look at the class it calls a driver ping method recently introduced: fast and efficient.<br/><br/>&lt;valid-connection-checker-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker&lt;/valid-conn<br/>ection-checker-class-name&gt;<br/><br/>Also, checking for available connections and giving your users a busy signal isa good idea.<br/><br/><strong>#3 Out of Memory .... THE BIG ONE!</strong><br/><br/>JBoss is the least likely to exhibit the out of memory problem because it does not have the EJB compile generating all those extra classes (a wild guess) and a small footprint. WebLogic has this problem and only just figured it out: they haven't told anybody, they quietly changed the new default configuration in 8.1:<br/><br/>SOLUTION: -XX:MaxPermSize=128<br/><br/>I can watch the perm size overflow before my very eyes and throw an Out of Memory error. The default with the -server switch is 64M and as soon as you cross that, poof, Out of Memory or sometimes a Hotspot compiler error asking you to contact Sun. Note that JRocket does not have this problem, HP does as does Sun.<br/><br/>I have a very high confidence level this is the mystery Out of Memory that is often reported by applications with tons of classes. I have been able to reproduce it at will and was able to watch our application break the JVM by overflowing the perm space. Adding just a couple more megs of perm to the same test: problem goes away. That is where the JVM places information about loaded classes. Sometimes it is cleaned up, mostly it just grows until you break it.<br/><br/><br/><br/></blockquote><br/><br/></div><!-- [DocumentBodyEnd:9b12a7ea-650e-40f5-8267-17013ddb140c] --><img src='/beacon?t=1513219365979' />2004-09-29T20:09:06Z13 years 2 months ago0Re: Thee Distinct and Important Issuestreespace/people/treespacedo-not-reply@jboss.com2004-05-27T22:23:23Z2004-05-27T22:23:23Z<!-- [DocumentBodyStart:751ce59e-e179-4199-b1d9-fa3cd5e5910b] --><div class="jive-rendered-content"><p>I updated the wiki and found a bug. You used double quotes on a "word" rather than ''two'' single quotes to italicize. The save stopped saving when it hit that. Very wierd. Anyway, I started again and changed the double quotes to double-single-quotes, as it were.</p></div><!-- [DocumentBodyEnd:751ce59e-e179-4199-b1d9-fa3cd5e5910b] -->2004-05-27T22:23:23Z13 years 7 months ago0Re: Thee Distinct and Important IssuesJuha Lindfors/people/juhado-not-reply@jboss.com2004-05-26T20:28:33Z2004-05-26T20:28:33Z<!-- [DocumentBodyStart:ff39bceb-7d71-4a36-ad98-b8ae16bf55a5] --><div class="jive-rendered-content"><p>Thanks Rod,<br/><br/>feel free to fill in whatever you see missing on this Wiki page. Particularly interesting are your experiences on JVMs other than Sun's.<br/></p></div><!-- [DocumentBodyEnd:ff39bceb-7d71-4a36-ad98-b8ae16bf55a5] -->2004-05-26T20:28:33Z13 years 7 months ago0Re: Thee Distinct and Important Issuestreespace/people/treespacedo-not-reply@jboss.com2004-05-26T19:49:54Z2004-05-26T19:49:54Z<!-- [DocumentBodyStart:eca521f6-4885-4014-aaae-066569097be8] --><div class="jive-rendered-content"><p>I meant to say in #1 and #2 that you will NOT get out of memory errors for these issues, question mark snuck in. Also the connection checker is part of your oracle-ds.xml, in the example shown.</p></div><!-- [DocumentBodyEnd:eca521f6-4885-4014-aaae-066569097be8] -->2004-05-26T19:49:54Z13 years 7 months ago0Thee Distinct and Important Issuestreespace/people/treespacedo-not-reply@jboss.com2004-05-26T19:48:11Z2004-05-26T19:48:11Z<!-- [DocumentBodyStart:1c48e1d4-9e2f-479d-a9a7-3c8a18acb166] --><div class="jive-rendered-content"><p>I recently fixed three distinct issues and noticed a lot of posts that were related but never really got to the bottom of the problem. In particular a Out of Memory Error issue that has been a long-standing problem in all application servers where the heap actually looks fine: people exhaust hours tracking down phantom, non-existent leaks.<br/><br/>Rod Macpherson (a.k.a. treespace)<br/><br/><br/><strong>#1 Out of Processors</strong><br/><br/>JBoss sets the processors to 5 for HTTPS in the tomcat jboss-service.xml and that is sure to cause problems for those switching from HTTP over to HTTPS for testing: HTTP has 80 processors! It can catch you off guard but it is pilot error. You will not get an out of memory error ? happily it is an error not an exception.<br/><br/><strong>#2 Out of Connections</strong><br/><br/>If you run out of connections you will get "no managed connections". You will not get an out of memory error. Increase your connections and check for availability in 3.2.3 using this, I'll use the oracle class JBoss ships with as an example. I believe this is strictly 9.2 &gt; since if you look at the class it calls a driver ping method recently introduced: fast and efficient.<br/><br/>&lt;valid-connection-checker-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker&lt;/valid-conn<br/>ection-checker-class-name&gt;<br/><br/>Also, checking for available connections and giving your users a busy signal isa good idea.<br/><br/><strong>#3 Out of Memory .... THE BIG ONE!</strong><br/><br/>JBoss is the least likely to exhibit the out of memory problem because it does not have the EJB compile generating all those extra classes (a wild guess) and a small footprint. WebLogic has this problem and only just figured it out: they haven't told anybody, they quietly changed the new default configuration in 8.1:<br/><br/>SOLUTION: -XX:MaxPermSize=128<br/><br/>I can watch the perm size overflow before my very eyes and throw an Out of Memory error. The default with the -server switch is 64M and as soon as you cross that, poof, Out of Memory or sometimes a Hotspot compiler error asking you to contact Sun. Note that JRocket does not have this problem, HP does as does Sun.<br/><br/>I have a very high confidence level this is the mystery Out of Memory that is often reported by applications with tons of classes. I have been able to reproduce it at will and was able to watch our application break the JVM by overflowing the perm space. Adding just a couple more megs of perm to the same test: problem goes away. That is where the JVM places information about loaded classes. Sometimes it is cleaned up, mostly it just grows until you break it.<br/><br/><br/><br/></p></div><!-- [DocumentBodyEnd:1c48e1d4-9e2f-479d-a9a7-3c8a18acb166] -->2004-05-26T19:48:11Z13 years 7 months ago40