update on server situation: more out of memory killer errors now, ssh shutting down, new server
i contacted 1and1 and they gave me a new server and refunded my old one. i'm getting the same problems with the server randomly shutting down but this time i have access to their remote console, meaning i don't need to ssh to access the server in case of emergency. never had this problem on my 6GB VPS that i had 500MB allocated to ubuntu and the rest to the server. ftp also stops and ssh just times out when this happens and i have to force restart in cpanel. all plugins are updated and i have genuinely no clue why this is happening, my old server was completely fine but the new contracts they have seemingly are cursed. thoughts?
7GB out of 8GB physical ram is allocated to server
4 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by squabbled#0
!oom
My server is using too much memory
My panel says my memory usage is high all the time.
Your server runs in the Java Virtual Machine (JVM), which has significant overhead & tries to effectively use ALL of the memory assigned to it.
Memory usage from "htop", Task Manager, or your server panel is the total consumption of the JVM, not just your server.
My server is lagging & I think it's memory related.
It's much more likely that you are bottlenecked by your CPU, disk, or some inefficient mod/plugin.
Rule of thumb, servers should have anywhere from 4GB to 12GB of memory, with 8GB being the 'sweet spot'.
If you're heavily modded, add 4GB to that.
Too much memory can be a bad thing. Don't exceed these caps unless you really know why you're doing it.
Troubleshoot your server the right way: use Spark & send us a report.
My server is randomly terminated unexpectedly.
Setting your server to use 8GB does not mean that Java won't exceed this amount.
As a rule of thumb, allow your system/container about 1-2GB (possibly more) overhead outside of the server.
If you're on Linux & can SSH into the system, check your kernel logs. They will report any incidents of OOM.
I want to use swap to allocate more memory.
Don't. Swap is not free memory and using it can negatively impact performance.
Admincraft Canned Responses
^^^ you just said it, try reducing the memory to 4, and see what happens