OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JDK Memory problem: How to limit memory for java

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation
View previous topic :: View next topic  
Author Message
mrmuehle



Joined: 21 Oct 2007
Posts: 2

PostPosted: Sun Oct 21, 2007 7:48 pm    Post subject: JDK Memory problem: How to limit memory for java Reply with quote

After several tries to install I only get this result:

Code:

500 Servlet Exception

Resin can't execute the compiler `/bin/sh'.  This usually means that the
compiler is not in the operating system's PATH or the compiler is incorrectly
specified in the configuration.  You may need to add the full path to <java
compiler='/bin/sh'/>.

java.io.IOException: java.io.IOException: Cannot allocate memory

Resin-3.0.19 (built Mon, 15 May 2006 04:50:47 PDT)


I got this help from my provider Hosteurope:
Quote:
Leider berechnet Java die Menge des verfügbaren Speichers auf VPS falsch. Bitte limitieren Sie die Menge des genutzen RAMs bei Start der Anwendung.

It says: you should limit the memory for JDK, because the VPS calculates the available memory in a wrong way.

How much memory do I need to satisfy OpenEMM and the JDK?
How to limit the memory?
I guess with jaca -mx20 f.e. but what value and in wich script?

Do You know any tricks to debugg this?
which logfile would help me?
is there a cheap VPS hosting service offering more memory for 9,90€?


Suse 10.0, 128 MB RAM garanted, garantiert
512 MB RAM dynamic
Hosteurope VPS Linux M 2.0,
9,90 €/ month
Back to top
View user's profile Send private message
petz



Joined: 15 Jan 2008
Posts: 3

PostPosted: Thu Jan 17, 2008 7:27 pm    Post subject: Reply with quote

I am having the same problems.
I also have a Vserver at hosteurope.
I Have the exact same vserver.

The Point you need to limit jvm is here:
/home/openemm/bin/httpd.sh

Quote:

args="-J-Dlog.home=/home/openemm/var/log -J-Dlog4j.configuration=emm.properties -J-Xms32M -J-Xmx128M"

Xms is the initial Memory that the JVM allocates
Xmx is the maximum Memory the JVM can allocate

Still not have it working jet, same error remains, but there is the point where you can start debugging.

Also if typing in the command:

Code:
ps aux | grep java


should give you

Quote:

openemm 16141 55.3 0.9 363172 37804 pts/0 Rl 20:24 0:01 /opt/openemm.org/software/java/bin/java -Dlog.home=/home/openemm/var/log -Dlog4j.configuration=emm.properties -Xms32M -Xmx128M -Xss1m -Dresin.home=/home/openemm -Dserver.root=/home/openemm -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl com.caucho.server.resin.Resin -socketwait 44700 -conf /home/openemm/conf/console.conf -server console -stdout /home/openemm/var/log/console_stdout.log -stderr /home/openemm/var/log/console_stderr.log
openemm 16153 55.3 0.9 363172 37884 pts/0 Rl 20:24 0:01 /opt/openemm.org/software/java/bin/java -Dlog.home=/home/openemm/var/log -Dlog4j.configuration=emm.properties -Xms32M -Xmx128M -Xss1m -Dresin.home=/home/openemm -Dserver.root=/home/openemm -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl com.caucho.server.resin.Resin -socketwait 44701 -conf /home/openemm/conf/redirection.conf -server redirection -stdout /home/openemm/var/log/redirection_stdout.log -stderr /home/openemm/var/log/redirection_stderr.log
root 16198 0.0 0.0 2844 812 pts/0 S+ 20:24 0:00 grep java



There you se the parameters given to jvm

Smile

If I get it running I tell you how.
Back to top
View user's profile Send private message
petz



Joined: 15 Jan 2008
Posts: 3

PostPosted: Thu Jan 17, 2008 8:07 pm    Post subject: Reply with quote

I gave up.

Seems that the Problem is the stack size of 1MB.

/home/openemm/bin/wrapper.pl
Quote:

#
# Default stack size. The 1m is a good tradeoff between stack size and
# allowing more threads. The default stack size doesn't allow enough
# threads for several operating systems.
#
$DEFAULT_STACK_SIZE="-Xss1M";


I tried to lower it, but then another exception occurs saying "Heap size to small".

The Virtuozzo Virtualisation hosteurope uses seems to be not suited for running java application servers.

Tomorrow I will check the OpenEMM VMWare Server config.
Maybe the Solution is hidden there. Perhaps you should download VMWare Player, start the OpenEMM Vmware Server and look into the mentioned files. Maybe there is the solution.
Back to top
View user's profile Send private message
mrmuehle



Joined: 21 Oct 2007
Posts: 2

PostPosted: Sat Jan 19, 2008 12:54 pm    Post subject: JDK Hosteurope Reply with quote

Thanks fpr your help,

i think it needs a bigger vserver.
May be we put it inhouse and use a vm.

thnks for posting your hints anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group