Hi,
Please i need help to reduce java max memory usage… I have openfire server for just few (<20) people. I need to maximaly reduce RAM size. I add following to /etc/rc.conf:
openfire_javargs="-Xms32m -Xmx64m -XX:MaxDirectMemorySize=64m -Djava.net.preferIPv4Stack=true"
But still dont work - after start openfire:
#top
Mem: 232M Active, 413M Inact, 228M Wired, 20M Cache, 110M Buf, 81M Free
Swap: 1536M Total, 660K Used, 1535M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
1428 mysql 21 20 0 229M 99M sbwait 3:44 0.00% mysqld
25390 openfire 74 20 0 396M 155M uwait 0:24 0.00% java
and again after 20 minutes:
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
25390 openfire 100 20 0 552M 206M uwait 0:32 0.20% java
1428 mysql 21 20 0 229M 99M sbwait 3:45 0.00% mysqld
How can i reduce java RAM usage to max 128 MB with heap, stack and other things together? I am using FreeBSD 9.1.
Thanks for help and sorry for my bad english