On Tue, Oct 11, 2011 at 8:45 PM, Daniel Eng <[email protected]> wrote:
> As far as I can remember, I only set the Initial Memory and Max Memory in > 1) Tomcat Service Control > Java Tab (Initial Memory Pool 2GB, Max Memory > Pool 2GB, Thread Stack Size 256MB) > Judging from what you pasted in before, these are the settings being used. > 2) OpenBD > Tomcat > Bin > setenv.bat (JAVA_OPTS="-Xms256m -Xmx3072m > -XX:MaxPermSize=256m") > Looks like this one's getting ignored in favor of the settings in the Tomcat service control in Windows. Which is fine, but you can delete setenv.sh and it would have no effect. The thing you *can't* adjust directly via the stock boxes in the Windows service control is the max permgen, which from what you said earlier is your problem. So I'd start there. In the Java tab of the Windows service control for Tomcat, there's a box at the bottom (sorry, don't have a Windows box handy at the moment) called "Java Options" or something along those lines. In there you can add this line (make sure it's on its own line): -XX:MaxPermSize=384m Make sure to restart Tomcat after changing this. Give that a shot and see where that gets you. Depending on the specifics of what your app does that may not be exactly the right setting but you can at least see if it has an effect. -- Matthew Woodward [email protected] http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
