powered by Jive Software

Memory (again) really heavy

Hello,

I have installed wildfire… i would like to run it for 30 users… memory allocated seem to be a little big…

I’'m under linux SUSE 2.4.21-192-default

my jvm version

java -server -version

java version “1.5.0_06”

Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot™ Server VM (build 1.5.0_06-b05, mixed mode)

I run wildfire

ps -aux

root 30243 50.0 10.1 250980 19308 pts/0 R 13:49 0:01 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30245 0.3 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30246 2.0 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30247 0.0 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30248 0.6 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30249 0.0 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30250 0.6 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30251 16.0 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30252 21.3 10.1 250980 19308 pts/0 R 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30253 0.3 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30254 0.0 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

root 30255 0.5 10.1 250980 19308 pts/0 S 13:49 0:00 /usr/lib/java/bin/java -server -Dinstall4j.jvmDir=/usr/lib/java -Dinstall4j.appDir=/opt/wildfi

I have so many process… i read on the forum that on new jre i should just have one process is it right ?

Or is there a way to run less process ?

When i do a top i have this

30243 root 25 0 22104 21m 9m S 0.0 11.6 0:02.63 java

30245 root 15 0 22104 21m 9m S 0.0 11.6 0:00.01 java

30246 root 15 0 22104 21m 9m S 0.0 11.6 0:00.12 java

30247 root 15 0 22104 21m 9m S 0.0 11.6 0:00.00 java

30248 root 15 0 22104 21m 9m S 0.0 11.6 0:00.02 java

30249 root 20 0 22104 21m 9m S 0.0 11.6 0:00.00 java

30250 root 15 0 22104 21m 9m S 0.0 11.6 0:00.02 java

30251 root 19 0 22104 21m 9m S 0.0 11.6 0:00.76 java

30252 root 22 0 22104 21m 9m S 0.0 11.6 0:01.07 java

30253 root 20 0 22104 21m 9m S 0.0 11.6 0:00.01 java

30254 root 15 0 22104 21m 9m S 0.0 11.6 0:00.00 java

30255 root 15 0 22104 21m 9m S 0.0 11.6 0:00.01 java

Memory allocated for each process is 11.6Mb !!

I read that the memory was allocated by the JVM…ok

But is it normal to have such number of process ?? if i could run less process i would use less memory…

I don’'t think that so much memory is needed for 30 users…

My aim is to reduce memory usage because i just have19Mb at the end free !!! (and 51Mb without wildfire!! = 43Mb used for no user connected …wouuuu)

any help/comment wlecome…

Best regards

f8arr

Hi,

after startup Wildfire uses less than 10 MB memory, plus 10 MB loaded classes and 15 MB for the JVM itself. So the process should not exceed 25 MB, which seems to be the case. You should not add the shared memory. If you plan to run Wildfire with 30 users you should have 128 MB free memory.

I don’'t know how you did get the information that only 19 MB are free, linux usually uses memory for caching - so if you have now a 500 MB cache there should be enough memory available.

LG

all this concerns about memory So what machine do you have and what other applications are runing on it?

Mine: P 550MHz 64MB RAM - Wildfire 2.4.4 - Archlinux 0.7.1 - JRE 1.5.0_06 (default settings, not even in server mode i think) - ~ 80 online users (not sure about the percent of them really messaging). All memory ran out after a few users connected so now swap is heavily used. And it runs smoothly.

Server Uptime: 17 days, 17 hours, 59 minutes – started Feb 3, 2006 4:30:33 PM

I’'m restarting it once per 3 weeks or after electricity/network breakdowns.