powered by Jive Software

Increase Java Memory at INSTALL4J_ADD_VM_PARAMS=

Ok, I have a modified wildfire script that works normally with a -Xmx256m entry in it. Now I want to boost available RAM for wildfire to 1.5 gb. I have tried the following

-Xmx1500m

-Xmx1.5g

-Xmx1000m

and the server instance refuses to start. what is the correct parameter to put in so that I will have 1.5 gigs available for wildfire. user base is now at 3400 users, with a standard load at any given time of 950 to 1150. Any Ideas?

Jeff

As a note, I did look around, attempted to put the values in, even tried 1024m as someone suggested, but still won;t run with the line uncommented in the wildfire script…

Jeff

Hi Jeff,

-Xmx1500m is right, could you run your (unix) script with “sh -x ./wildfire.sh start”? This should print the java call which fails on the screen.

What is the error you see in nohup.out?

If you have just 1500 MB physical memory it will not start with this value.

LG

/usr/local/bin> sh -x ./wildfire start

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m -XX:PermSize=35m -XX:MaxSize=70m -verbose:gc -XX:*PrintGCDetails -XX:*PrintGCTimeStamps -Xloggc:/logs/gc.log

++ pwd

  • old_pwd=/usr/local/bin

++ basename ./wildfire

  • progname=wildfire

++ dirname ./wildfire

  • linkdir=.

  • cd .

  • prg=wildfire

  • ‘’[’’ -h wildfire ‘’]’’

++ ls -ld wildfire

  • ls=lrwxrwxrwx 1 root root 26 2006-05-17 08:32 wildfire -> /opt/wildfire/bin/wildfire

++ expr ‘‘lrwxrwxrwx 1 root root 26 2006-05-17 08:32 wildfire -> /opt/wildfire/bin/wildfire’’ : ‘’.-> (.)$’’

  • link=/opt/wildfire/bin/wildfire

  • expr /opt/wildfire/bin/wildfire : ‘’./.’’

  • prg=/opt/wildfire/bin/wildfire

  • ‘’[’’ -h /opt/wildfire/bin/wildfire ‘’]’’

++ dirname /opt/wildfire/bin/wildfire

  • prg_dir=/opt/wildfire/bin

  • cd /opt/wildfire/bin

++ pwd

  • prg_dir=/opt/wildfire/bin

  • app_home=…/

  • cd …/

++ pwd

  • app_home=/opt/wildfire

  • bundled_jre_home=/opt/wildfire/jre

  • cd /opt/wildfire/bin/.

  • ‘’[’’ -f /opt/wildfire/jre/lib/rt.jar.pack ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm

  • tested_jvm=na

  • test_dir=

  • bin_dir=/bin

  • java_exc=/bin/java

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • ‘’[’’ -f /opt/wildfire/.install4j/pref_jre.cfg ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm /opt/wildfire/jre

  • tested_jvm=na

  • test_dir=/opt/wildfire/jre

  • bin_dir=/opt/wildfire/jre/bin

  • java_exc=/opt/wildfire/jre/bin/java

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ ‘’!’’ -d /opt/wildfire/jre/bin ‘’]’’

  • ‘’[’’ ‘’!’’ -f /opt/wildfire/jre/bin/java ‘’]’’

  • ‘’[’’ ‘’!’’ -x /opt/wildfire/jre/bin/java ‘’]’’

  • tested_jvm=false

  • read_db_entry

  • ‘’[’’ -n ‘’’’ ‘’]’’

  • db_file=/home/wildfire/.install4j

  • ‘’[’’ ‘’!’’ -f /home/wildfire/.install4j ‘’]’’

  • ‘’[’’ ‘’!’’ -x /opt/wildfire/jre/bin/java ‘’]’’

  • found=1

  • exec

  • read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch

  • ‘’[’’ JRE_VERSION = JRE_VERSION ‘’]’’

  • ‘’[’’ /opt/wildfire/jre = /opt/wildfire/jre ‘’]’’

  • ver_major=1

  • ver_minor=5

  • ver_micro=0

  • ver_patch=06

  • found=0

  • break

  • exec

  • return 0

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • ‘’[’’ 1 -lt 1 ‘’]’’

  • ‘’[’’ 1 -eq 1 ‘’]’’

  • ‘’[’’ 5 -lt 5 ‘’]’’

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • app_java_home=/opt/wildfire/jre

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • vmoptions_val=

  • vmoptions_file=/opt/wildfire/bin/wildfire.vmoptions

  • ‘’[’’ -r /opt/wildfire/bin/wildfire.vmoptions ‘’]’’

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m -XX:PermSize=35m -XX:MaxSize=70m -verbose:gc -XX:*PrintGCDetails -XX:*PrintGCTimeStamps -Xloggc:/logs/gc.log

  • local_classpath=

  • add_class_path /opt/wildfire/.install4j/i4jruntime.jar

  • ‘’[’’ -n /opt/wildfire/.install4j/i4jruntime.jar ‘’]’’

++ expr /opt/wildfire/.install4j/i4jruntime.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar

  • ‘’[’’ ‘’!’’ -d /opt/wildfire/lib ‘’]’’

++ ls /opt/wildfire/lib

++ egrep ‘’.(jar$|zip$)’’

  • add_class_path /opt/wildfire/lib/activation.jar

  • ‘’[’’ -n /opt/wildfire/lib/activation.jar ‘’]’’

++ expr /opt/wildfire/lib/activation.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar

  • add_class_path /opt/wildfire/lib/bouncycastle.jar

  • ‘’[’’ -n /opt/wildfire/lib/bouncycastle.jar ‘’]’’

++ expr /opt/wildfire/lib/bouncycastle.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar

  • add_class_path /opt/wildfire/lib/commons-el.jar

  • ‘’[’’ -n /opt/wildfire/lib/commons-el.jar ‘’]’’

++ expr /opt/wildfire/lib/commons-el.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar

  • add_class_path /opt/wildfire/lib/hsqldb.jar

  • ‘’[’’ -n /opt/wildfire/lib/hsqldb.jar ‘’]’’

++ expr /opt/wildfire/lib/hsqldb.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar

  • add_class_path /opt/wildfire/lib/hsqldbutil.jar

  • ‘’[’’ -n /opt/wildfire/lib/hsqldbutil.jar ‘’]’’

++ expr /opt/wildfire/lib/hsqldbutil.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar

  • add_class_path /opt/wildfire/lib/jasper-compiler.jar

  • ‘’[’’ -n /opt/wildfire/lib/jasper-compiler.jar ‘’]’’

++ expr /opt/wildfire/lib/jasper-compiler.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar

  • add_class_path /opt/wildfire/lib/jasper-runtime.jar

  • ‘’[’’ -n /opt/wildfire/lib/jasper-runtime.jar ‘’]’’

++ expr /opt/wildfire/lib/jasper-runtime.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar

  • add_class_path /opt/wildfire/lib/jdic.jar

  • ‘’[’’ -n /opt/wildfire/lib/jdic.jar ‘’]’’

++ expr /opt/wildfire/lib/jdic.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r

  • add_class_path /opt/wildfire/lib/jtds.jar

  • ‘’[’’ -n /opt/wildfire/lib/jtds.jar ‘’]’’

++ expr /opt/wildfire/lib/jtds.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar

  • add_class_path /opt/wildfire/lib/mail.jar

  • ‘’[’’ -n /opt/wildfire/lib/mail.jar ‘’]’’

++ expr /opt/wildfire/lib/mail.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar

  • add_class_path /opt/wildfire/lib/mysql.jar

  • ‘’[’’ -n /opt/wildfire/lib/mysql.jar ‘’]’’

++ expr /opt/wildfire/lib/mysql.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar

  • add_class_path /opt/wildfire/lib/postgres.jar

  • ‘’[’’ -n /opt/wildfire/lib/postgres.jar ‘’]’’

++ expr /opt/wildfire/lib/postgres.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar

  • add_class_path /opt/wildfire/lib/servlet.jar

  • ‘’[’’ -n /opt/wildfire/lib/servlet.jar ‘’]’’

++ expr /opt/wildfire/lib/servlet.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar

  • add_class_path /opt/wildfire/lib/startup.jar

  • ‘’[’’ -n /opt/wildfire/lib/startup.jar ‘’]’’

++ expr /opt/wildfire/lib/startup.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/l ib/startup.jar

  • add_class_path /opt/wildfire/lib/wildfire.jar

  • ‘’[’’ -n /opt/wildfire/lib/wildfire.jar ‘’]’’

++ expr /opt/wildfire/lib/wildfire.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/l ib/startup.jar:/opt/wildfire/lib/wildfire.jar

  • echo ‘‘Starting wildfire’’

Starting wildfire

  • exit 0

:/usr/local/bin> + nohup /opt/wildfire/jre/bin/java -server -Dinstall4j.jvmDir=/opt/wildfire/jre -Dinstall4j.appDir=/opt/wildfire -Dexe4j.moduleName=/opt/wildfire/bin//opt/wildfire/bin/wildfire -Xms512m -Xmx1500m -XX:PermSize=35m -XX:MaxSize=70m -verbose:gc -XX:*PrintGCDetails -XX:*PrintGCTimeStamps -Xloggc:/logs/gc.log -classpath /opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activation.jar:/opt/w ildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/opt/wildfire/lib/ hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/jasper-compiler.ja r:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.jar:/opt/wildfire/ lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql.jar:/opt/wildfir e/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/lib/startup.jar:/ opt/wildfire/lib/wildfire.jar com.install4j.runtime.Launcher start org.jivesoftware.wildfire.starter.ServerStarter false false /opt/wildfire/bin/…/logs/stderror.log /opt/wildfire/bin/…/logs/stdoutt.log true true false ‘’’’ true true 0 0 ‘’’’ 20 20 Arial 0,0,0 8 500 ‘‘version 2.6.2’’ 20 40 Arial 0,0,0 8 500 -1 -DwildfireHome=/opt/wildfire -Dwildfire.lib.dir=/opt/wildfire/lib start

nohup: appending output to `nohup.out’’

THEN I GET THIS AFTER I CHANGE MAX SIZE

Unrecognized VM option ‘‘MaxSize=70m’’

Could not create the Java virtual machine.

Unrecognized VM option ‘‘MaxSize=2000m’’

Could not create the Java virtual machine.

Unrecognized VM option ‘‘MaxSize=1500m’’

Could not create the Java virtual machine.

Ok so now what? what am I missing?

Ok I have the issue here, no resolution yet but I do have what the problem is. I have 4 gb of ram, but Linux is using most of it for processes. Looks like I need to work the config file for Java to allow . Thanks LG Not my solution, but Definitely pointed me in the right direction.

Jeff

Hi Jeff,

Unrecognized VM option ‘‘MaxSize=70m’’” indicates that the VM does not know what to do with this option. You did edit your file and changed MaxPermSize to MaxSize, didn’'t you?

It should help a lot to remove the MaxPerm parameter or to name it MaxPermSize.

LG