I recently moved my site to a VPS hosting. It's my first time in using VPS.
I installed cPanel on it, therefore it's quite similar to the share hosting I was using before without any problem.
However, I have to manage the VPS by myself, and here is the problem:
the server crashes sometimes! (3 times in 14 days)
Probably it's not a crash, because I can still ping it. But I cannot ssh into the server, and the web pages cannot be loaded, so I basically call it a crash. And the only way I can solve it is to reboot it. (/var/log/message didn't show anything weird when the crashes happened)
My VPS was configured with 1 CPU & 2GB RAM (CentOS). My site has 2000-3000 page views per day, and I have a cron job that runs 15 mins and makes about 250 http requests (I have a one second sleep between each request) and parses/stores some data into a local database (this cron job lasts about 7 mins).
From your experience, do you think the crash is due to the memory? Or what else?
The other thing is that the memory used seems increasing slowly and constantly. I observe this by using the command "free -m". For example, it was 680M used after rebooting, however after 3 hours, it becomes 950M used and stays there. Except web hosting and the cron job, I don't run other things on this server, what would you think about this?
I know it's kind of hard to diagnose this kind of problem without further information. But to the end user point of view, I got a VPS and configured it with cPanel, I was thinking everything just worked as a share hosting. But this crash problem really makes me feel I may have made a bad choice to use VPS hosting. It's great if you can share any experience so that I know what to observe and know the direction I should be heading.
Thanks a lot in advance.