For all Java Processes [unix]export JVM_OPTS ="-Xmx512M" [windows] SET JVM_OPTS="-Xmx256m"
For Tomcat only [unix] export TOMCAT_OPTS=3D"-DXmx=3D512m" [Windows] set TOMCAT_OPTS=3D"-DXmx=3D512m" Martin Gainty ______________________________________________ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: lfisc...@fast-mail.org > To: users@tomcat.apache.org > Subject: Tomcat gets not enough memory on vServer > Date: Thu, 17 Dec 2009 12:06:32 +0100 > > Hello, > > I have some trouble with a Tomcat running on a vServer Ubuntu 8.04: > > I used an old vServer with 768MB RAM. On this machine I had a Tomcat > running using -XX:MaxPermSize=128m -Xmx256m settings. Tomcat consumed > the given memory and was working fine. > > Now I switched to a new vServer machine with 1024MB RAM. I installed the > latest JDK6, downloaded latest Tomcat6 and started it. As result the > htop- > command shows me a virtual memory consumption of 512MB. Together with > additional MySql and httpd the new machine needs much more memory than > on the old machine and sometimes my webapps fail with something like > "java.io.IOException: Cannot run program "env": java.io.IOException: > error=12, Cannot allocate memory" > > This is annoying: the new machine with more RAM gets not enough > memory... > > Where is my mistake? Is it a problem of the vServer? > > regards > Lars > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/