Best Hosting For Liferay? Ram?

3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Hey guys,

I have an account with linode.com. I only have 540MB of RAM and I know I need to upgrade. But the problem is what should I get?

Should I upgrade to 1080MB? 1440MB? What will be enough? How do I decede what is enough?

Thank you,
Baris Sener,
thumbnail
682861, modified 16 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts
Hi Baris, java+liferay are RAM & CPU hungry, and I suppose you run own db as well. It will require more resources if you need liferay on J2EE app server, such as jboss.

It may sound a bit excessive but we found that VM with peak access up to 4Gb RAM is a comfortable shared virtual environment. RAM is not that expensive any more.

I checked Linode pricing, it does not really reflect the needs of businesses that use liferay as their ebusiness platform:
- Small business would really need 2Gb RAM to have fast response times,at linode this is a top-price plan
- Actual bandwidth would rarely exceed 1 Gbit per month, linode plan offers and charges for 1.6 Tb of transfer.
- 16-24Gb of hard drive storage is also a very comfortable level for liferay

It looks like that linode is more suited for special industries that are hungry on storage space and bandwidth.
3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Hello Victor,

Thank you for your reply. Can you recommend a company?

Thanks,
Baris
thumbnail
682861, modified 16 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts
Baris, I hope you've seen Liferay Hosting Providers. If you need someone with expertise, choose from this list, anyone outside of it would not be able to provide specifics you need.
[My company is listed there also, see MyOffice24x7 entry].
2918776, modified 16 Years ago. Regular Member Posts: 177 Join Date: 4/24/09 Recent Posts
I'll be very interesting in this thread. I'm in the process of releasing a LifeRay portal for a web application I wrote, so I'll be following this thread very carefully.

I'm far from an expert in hosting services, but I currently use SliceHost which offers VPS (only VPS actually). I've been very happy with them. I can tell you from experience that LifeRay will struggle with 512MB of RAM. When I first got SliceHost, I signed up for the 512MB slice. I have MySql, LifeRay + Tomcat (not even full fledged app server), plus the basics for a mail server so LifeRay can send mail - and although it sort of worked, I wouldn't come close to recommending it, even for a test application. I guess you mileage may vary, but this wasn't nearly enough. With this amount of RAM LifeRay took 4-5 minutes to start up. Web pages were served up VERY slowly, even on really simple pages, once in a while, they'd time out.

Currently, I have 1GB. I know this won't be enough for production but for testing purposes it actually works fairly well. It can handle a couple of users comfortably. I know though if my site will have any traffic, I"ll need to upgrade.

Victor - what kind of traffic do you think a 4GB plan would support? I know there are a lot of variables that could skew it, but for a standard LifeRay install with Tomcat and MySql, would 4GB handle a good amount of traffic for a website with a few custom portlets that access MySql along with a few blogs/forums and web content.

As for SliceHost, one of the things I like about them (and not sure if other hosting companies do this as well), if you decide to upgrade or downgrade, they'll basically copy your whole server over to the new upgraded package. For instance, when I upgraded from 512MB to 1GB of RAM, in about 5 minutes I had everything I had already configured and installed ready to go. I didn't have to do anything - including reinstall LifeRay, MySql, set up accoutns again, even the databases within MySql were copied over. Maybe all hosting companies do this, but if not, this is what attracted me to SliceHost - if I need to upgrade in the future it wouldn't be a monumental and tedious task for me to do it. SliceHost basically gives you a virgin environment with little to nothing on it. IF you aren't a linux admin, they have really good trails/tutorials that offer a step by step guide on setting up pretty much everything - users, firewall, email, etc. I have my LifeRay running on a 1GB slice w/ Ubuntu Linux on a 64 bit machine. Rackspace owns SliceHost now, but they pretty much keep SliceHost completely separate from "RackSpace" iteself - in fact, i didn't know RackSpace owned them until I googled SliceHost and saw an article on it.

Just my 2 cents... good topic
thumbnail
682861, modified 16 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts
512MB slice... took 4-5 minutes to start up ...

Hard drive would explode from paging activity. It is quite possible that you were also experiencing intermittent JVM halts. However this may also happen even with 2 Gb RAM when portal is misconfigured. Acceptable startup times 17-35 seconds.

what kind of traffic do you think a 4GB plan would support

You can serve a lot when properly tuned, 200+ simultaneous users, subject to type of user activities.
However it is not just the RAM issue, having multicore CPUs is very helpfull, JVM does good job on spreading work across all processors.
Construction of Liferay pages, use of CDN (content-delivery-network) features, tuning of portal filters, enabling compression, proper construction of expiry headers, etc may give another 60-300% of performance boost on client side. You have to accept that default configuration of Liferay portal, even an Enterprise one, does not suit to anyone in particular. Every configuration must be set specifically for the service that particular deployment provides.
Unfortunately when I browse websites that use Liferay portal, practically all of them are extremely slow, this just means that no attention has been paid to tuning and customization of configuration on any level: hardware-OS-JVM-tomcat-DB-j2eeAS-liferay-own_portlets. Not touching the security yet, e.g. stacktrace can be made almost on every website I have seen.
3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Hello Victor,

Thank you for your reply. How do I tune the portal? I understand what you mean, but I'm not quite sure how to accomplish that.

Thanks,
Baris
thumbnail
682861, modified 16 Years ago. Liferay Legend Posts: 1228 Join Date: 4/14/08 Recent Posts
How do I tune the portal?

There are bits and pieces that can be found across forums and in Admin. guide, you have to pick it up and apply to your specific setup.
When you have support partner/provider that specializes in Liferay applications' development and hosting, this company should be able to deliver guidance and related services of this kind.
Above I have listed most common areas of tuning (however missing another very important performance related zone -> look-and-feel theme). Each of this areas requires independent assessment and metrics, some shall come implemented within a preloaded hosting bundle, some can only be implemented after some time, when system is settled.
It is more a continuous and planned process rather than a single fix.
Tuning should not be expensive either, e.g. in our case most assessments are provided (by us or local partner) at a fixed (1hr) rate, and recommendations/changes can be implemented/applied by the application owner.

Baris, I apologize that I could not give you a single-line answer or URL link, I do not think it exists.
3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Hello Victor,

No worries, I understand what you mean. I'll be doing some research to find out. Thank you for letting me know.

Baris
thumbnail
2401061, modified 16 Years ago. Liferay Legend Posts: 2034 Join Date: 3/5/09 Recent Posts
One of the best things you can do is to tune tomcat. I'm currently running a small community on a 1GB slice without any real issues.
3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Wow nice. I'll google that.
thumbnail
1761809, modified 15 Years ago. New Member Posts: 10 Join Date: 12/12/08 Recent Posts
You can also try RimuHosting. I got the MICROVPS2 but upgraded my memory to 700mb plan. seems to work for me. It also host my email with (dovecot+postfix) I would still recommend higher memory. support is great.
2918776, modified 16 Years ago. Regular Member Posts: 177 Join Date: 4/24/09 Recent Posts
Thanks for your reply Victor. You are right on the "paging activity" comment - that is exactly what was happening with 512MB of RAM. Right now, under my 1GB plan with SliceHost, I'm getting pretty good start up times, if I recall, its in the 15-25 second range. But I do realize that 1GB is kind of light for any J2EE application.

One of my tasks is to do just as you say - fine tune LifeRay and the JVM. I need to do some research into this, but I'm excited about using LifeRay. I haven't done much of that, really the only thing I've done is a few custom portlets and use MySql as backend database. Coming from an Oracle Portal environment, I'm very impressed with LifeRay.
thumbnail
2401061, modified 16 Years ago. Liferay Legend Posts: 2034 Join Date: 3/5/09 Recent Posts
Since I build and manage my own site in Liferay, I use a virtual hosting provider - slicehost. They install the OS and rest is up to me. I host several sites on my slice and it's about $70 USD a month. It's a 1GB of RAM slice and seems to respond fine for my small community of users.
3386848, modified 16 Years ago. Expert Posts: 278 Join Date: 6/23/09 Recent Posts
Sounds interesting. What company do you use?
thumbnail
2401061, modified 16 Years ago. Liferay Legend Posts: 2034 Join Date: 3/5/09 Recent Posts
http://www.slicehost.com/