Hi I've had edited wrapper.conf by increasing the wrapper.java.maxmemory=xx setting but this reaches a limit of 4096m.
I want to go above this, but can't do so using the wrapper so used bin/start to start Karaf and changed /bin/setenv. I would like to use the wrapper ideally however. My colleagues pointed out that 4096m seems suspiciously like the limit imposed by a 32bit environment. However, I'm on a 64 bit VM using /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java to start. Could there be something hardcoded in wrapper which limits the possible memory allocation? James -----Original Message----- From: Jean-Baptiste Onofré [mailto:[email protected]] Sent: 15 October 2014 10:59 To: [email protected] Subject: Re: Unable to change JVM settings with wrapper/Karaf Hi James, the wrapper conf is used only when you use the init script generated (and supposed to be copied in /etc/init.d). bin/setenv is not used by the wrapper, but by bin/karaf or bin/start script. Regards JB On 10/15/2014 11:42 AM, BURN, James wrote: > Hi > > > We're running ServiceMix 5.1.1 (Karaf 2.3.4) under wrapper. We've 8Gb > on the VM and I'm trying to increase the amount of memory allocated to > the JVM. I changed the memory in KARAF-service.conf file which was > generated through installing wrapper in ServiceMix to > wrapper.java.maxmemory=6244 > > However, when I restart Karaf I am set -Xmx4096m in startup. This > appears to be some sort of upper limit; if I put > > wrapper.java.maxmemory=2048 > > this correctly sets -Xmx2048m in startup. > > I can start ServiceMix directly and edit /etc/bin/setenv to allocate > more memory, but then lose the functionality of wrapper. > > > Any thoughts? > > James > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
