Hello everyone. I am having an issue with our Windows based Openfire server. I am posting this up because I have read thru the suggested solutions for this issue, but they have not worked.
We are using a Windows Server 2008 R2 Vitual machine. 64Bit OS and 4 GB of memory.
We have Openfire 4.0.1 installed and running on this machine. But it keeps crashing and eating up the CPU for some reason. When I log into the admin page. I noticed that the Java Memory is almost maxed out.
I have created the openfired.vmoptions ad openfire-service.vmoptions files. But it does not seem to help. May I have misread how to apply those files. For that reason I am hoping for some help here. Thanks
I noticed that the Java Memory is almost maxed out.
This might be a normal behavior of JVM you have observed. It constantly eats up memory and then releases it. You can continuously refresh that page to see how it works that way. Of course, if it uses up 99% of memory, then it is not ok and correct vmoptions file may help.
openfired one is bad. Has only xmx setting in there. Although i donāt think it should affect the service, but it is safer to just delete it and restart the service. Also, in the openfire-service.vmoptions i would go with 512m for Xms. You are already running out of 256 MB of JVM, so no point of setting it as a min value, i think.
Ok. Deleted openfired. Adjusted openfire-service. Stopped and restarted openfire. But change still does not reflect? Should I reboot the server? I donāt understand why it is not seeing the file.
Well. That could certainly be the issue. Because there is no openfire service in the services list. I do see openfired.exe and openfire.exe in the Process list.
Yep. Stop the Openfire Launcher and quit it. Then install the service per instructions Openfire: Installation Guide (Windows Service). Then start the service and check JVM memory. Do not run it via launcher anymore.