123 Flash Chat Community Forum
123 Flash Chat Server Software => 123 Flash Chat Support => Topic started by: studio243 on June 22, 2014, 05:22:55 AM
-
Hi there
I am hoping that someone can give me an idea as to how java uses server memory. The 2 pictures below show java's usage just after rebooting the server (picture 1) and when the chat has been running for a few days (picture 2) It seems that memory allocation increases steadily over time and I'm not sure what causes this. Our chatroom is setup not to save chat history and cache settings are zero so I don't understand why it increases over time.
Thanks in advance
-
Hi Friend,
Sorry for my late response, can you send the images one more time, i can not open them.
Thanks and look forward from you.
Regards,
Admin
-
Hi there and thank you for the reply. I'm not sure why the images are not showing so I have linked to them here:
https://www.dropbox.com/s/ruk51z717ainuxh/memory1.jpg (https://www.dropbox.com/s/ruk51z717ainuxh/memory1.jpg)
https://www.dropbox.com/s/hm3qrvkkgp8lgbd/memory2.jpg (https://www.dropbox.com/s/hm3qrvkkgp8lgbd/memory2.jpg)
-
Hi Friend,
Thanks for your info, i will send them to our supporter and let them check for you.
Look forward from you.
Regards,
Admin
-
Dear friend,
Generally speaking, the way java uses server memory has many factors.
Not only the chat history and cache settings, but also the image transfer, audio/video, registration of users etc are related to the increasing of memory.
Any further question please feel free to contact us.
Thanks.
Admin
-
OK, thanks for your reply.
-
You are welcome, any questions feel free to contact us.
Thanks and look forward from you.
Regards,
Admin
-
What files are on the Desktop? The high memory usage by explorer is usually related to some sort of media file on the Desktop.
-
Hi,
Im using 123flashchat version 9.4 for quite a while now and in the last months its driving me crazy because it crashes all the time which forces me to restart it every time. At the beginning the crashes were after 2 weeks or so of been working 24/7 but now it barely stays 1 hour online before requiring me to restart it again.
I checked the error logs and this is what I find:
Server exception monitor uncatched exception: java.lang.OutOfMemoryError: Java heap space.
Im running a CentOS. What can I do to fix this problem?
Thank you.
-
Hi
I'm not sure whether this will work for you or if you've done it already but there is a way to adjust the memory limit used by the software. I've pasted the instructions from the user manual below:
Adjust the memory allocation for the server as follows:
cd <123flashchat installation directory>/server
vi fcserver.vmoptions
At the last line of this file, there is a symbol "#", remove it and adjust the value followed by the Xmx, then save your adjustments.
./fcserver stop
./fcserver start
-
I tried that already but doesnt seem to work. How much should I use for the values there?
-
The value shouldn't be more than the actual memory your server has. My chatroom runs on a server with only 1GB of ram without any problems - it's a small community chatroom with around 40 users maximum at any one time.
I set the memory on my server as per the instructions above to:
-Xmx1024m
which matches the actual ram of the server (don't forget to remove the "#" from the beginning of the line before you save the file).
It's also a good idea to have some virtual memory (swap memory) set as well to safeguard against the server running out of memory if you haven't done so already.
-
studio243 is correct. I had that same problem a whole ago and that was the solution.
Do you by any chance know anything about using the API for the chat studio243? i want to use the send broadcast and private message API.
Nice to see a post finally in this forum. It seems like the developers have abandoned this project.
-
Thanks for the advice. Do you know of any vulnerability someone can exploit to make the chat crash? I believe there could be some asshole doing this with my chat because it never happened something like this before and its getting on my nerves.
-
Thanks for the advice. Do you know of any vulnerability someone can exploit to make the chat crash? I believe there could be some asshole doing this with my chat because it never happened something like this before and its getting on my nerves.
There could well be an exploit but it's not something I've come across before so I don't know about that. Your problem seems to be related to memory - Did you adjust the value to match your server's ram and add/ tweek swap memory? If you have, then it might be something else that you've got running on your server. For example, when I installed fail2ban on my server it caused a few weird problems with the chatroom so I had to remove it to get the chat functioning properly again. Maybe you have something else running that is conflicting with the chatroom?
If it's not too much of a disruption (assuming your server is dedicated to the chatroom), you could try a clean install of CentOS and 123flashchat and troubleshoot from there.
-
Do you by any chance know anything about using the API for the chat studio243? i want to use the send broadcast and private message API.
Hi odonel
I know there's a section in the user manual dedicated to this but it's above my head I'm afraid. I had no idea how to even set up a server before getting this software so it was a steep learning curve just to figure out how to do that.
-
I did changed the value but it didnt work right away so I will keep trying. I dont have anything else running on my server except for the basic stuff that has been always running and I havent changed anything at all in all these years so I dont understand why all of the sudden I am experiencing this problem at all. I have 8GB memory so memory should not be a problem here.
-
Hi supercain
Wow, I agree - 8gb should be more than enough. Sorry my suggestions didn't help and I hope someone else is able to suggest what it could be instead.
-
No need to apologize. Im pretty sure some fucking idiot is responsible for this. In the mean time Im adjusting the memory to 7000mb and hope that makes any difference.
-
Didnt work, in fact it collapsed my entire server. This is crazy!