开发者

Java Servlet Container on a small VPS

开发者 https://www.devze.com 2022-12-18 19:55 出处:网络
A while back I was using Virtual Private Server (VPS) that had very limited RAM.I used it to host Jetty.It was so slow that it became completely unusable.I believe the main problem was memory-related.

A while back I was using Virtual Private Server (VPS) that had very limited RAM. I used it to host Jetty. It was so slow that it became completely unusable. I believe the main problem was memory-related. I switched the project over to PHP and the problems disappeared.

Needless to say, I'm very hesitant to try Java again in a VPS. Even though the RAM in my VPS is significantly higher, it seems like PHP is streamlined for low RAM. Has anyone tried a VPS with a Servlet container and had a lot of success? Could it have been something simple with my Java con开发者_如何转开发fig? Is PHP usually the better choice for a small VPS deployment?


ServerFault may be a better place to ask that than here, but in my experience 128 is dreadfully low. I run a Tomcat instance on a Linode VPS with 1 gig of guaranteed memory and haven't had any issues. The particular site in my case also has very low traffic, so I can't vouch for it under heavy loads

The 'Burst' signifies that your VPS may be given access to more than your 128 megs at times (depending on the overall server usage). For a server instance, access to this memory should be considered unreliable and your better off assuming the worst case scenario of only having 128 megs.

In other words, pay more for more memory =)

Edit: Ask and ye shall receive. Top reports 1025 megs virtual memory, and 416 megs reserved. It's by far the largest memory hog running on my VPS.

0

精彩评论

暂无评论...
验证码 换一张
取 消