Thanks, we will try with JDK 6 and see what happens. -----Original Message----- From: Stefano Bagnara [mailto:[EMAIL PROTECTED] Sent: 21 August 2008 12:43 PM To: Hillel Bilman Subject: Re: James uses up almost all the memory any suggestions
Hillel Bilman ha scritto: > Hi Stefano, > > Thanks for replying. > > 1. I agree, the goal for using free was to show that after stopping James > about 7GB was now available to the OS. > The PS command showed James as using about 95% of the available memory. > > 2. I agree > > 3 and 4.: > Based on your remark, I don't understand how Java gets access to so much > memory. > java version "1.5.0_15" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) > Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode) > > Would you recommend we move to JDK 6? > > We are using james-server.sh to keep James running and we are using the > default -Xmx, > how does one find out the default Xmx the JVM is using? If the JVM uses 7GB and you didn't set Xmx then this is not related to JAMES but to the JVM. So please make sure you are using the latest version of the JVM for your platform. 64bit platforms are supported since less time so they are more likely hit by issues. Try with different jvms and I bet this problem will disappear. > 5. From the URL > http://java.sun.com/developer/technicalArticles/Programming/HPROF.html > > It appears we should use javac -J-agentlib:hprof=heap=dump jamesClassName or Try first with jstat command: http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jstat.html This will give you informations about the java memory pools and their usage. > 6. If one of our mailets throws exceptions that were not caught, could that > cause the problem? Should not. But your mailets could allocate objects they never free. I think they are not your mailets because a JVM cannot use 8GB of memory because of bad classes if you don't add an Xmx to allow it to use so much memory. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
