Knowledgebase

Java on linux???

Posted by anastasia0181, 04-01-2010, 02:53 PM
Hi I have a client requesting Java to be active on my Centos/cpanel server, how to check if my server support Java and it utilities (JSP...). Thank you.

Posted by barry[CoffeeSprout], 04-01-2010, 04:33 PM
Try executing: java -version You can install Java by downloading it from: http://java.sun.com/javase/downloads/widget/jdk6.jsp Be sure to get the Linux RPM version. If your system is 64 bit you can get the X64_86 version. After downloading it you can install it as follows: chmod +x jdk-*.rpm.bin ./jdk-*.rpm.bin Accept the license; Presto, you have Java EDIT: This is all done from the commandline, by ROOT.

Posted by whmcsguru, 04-01-2010, 05:18 PM
I think what he might be referring to is something more intense, the ability to run java apps (ie: tomcat) in the webpage. Be very, very careful with this apache addon, because it's been known to load down servers like nothing you've ever seen.

Posted by anastasia0181, 04-01-2010, 06:31 PM
Yes my client means to run Java apps on my linux server, how to verify if tomcat is installed on my server, if so how to active it? Thank you.

Posted by whmcsguru, 04-01-2010, 06:37 PM
if you haven't specifically installed it, it's not. I linked to the addon site, but it can be a bit complicated to install. If you're running cPanel, they might (might) still have a tomcat installer in WHM, but like I said, it's always best to avoid tomcat, as it will load down the server. Might be a good time to suggest a ded server for your client if he really needs it.

Posted by cPanelDavidG, 04-02-2010, 10:51 AM
Yes, Tomcat can be installed via EasyApache. Just check the checkbox on Step 5 for Tomcat and build. However, we only recommend Tomcat for experienced Tomcat administrators as much of the administration is done via the command line at this time. Additionally, be aware of the substantial amount of RAM that Tomcat can consume since all JSP apps are loaded at boot time. Often, hosting providers will have a separate server running Tomcat for their customers that insist on JSP capabilities, minimizing the overall burden of running Tomcat.

Posted by Sileep Kumar M S, 04-05-2010, 02:11 AM
Yeah, running tomcat on shared linux server is really a bad idea!

Posted by Crashus, 04-05-2010, 07:07 AM
ask your client if he want to run it on a dedi, java instance can use up to 512M of RAM usually.

Posted by ideamine, 04-05-2010, 09:52 AM
It is better to move him to a dedicated server and install Tomcat.

Posted by barry[CoffeeSprout], 04-06-2010, 07:31 AM
Actually a VPS is mostly good enough, Tomcat is pretty lightweight. Be sure to stick with a quality Xen node as OpenVZ is very likely to kill Tomcat when it reclaims memory from the "burst memory" pool

Posted by Joe262, 04-06-2010, 10:38 AM
Yup. I've never had issue running tomcat on a VPS. Heck, even glassfish (which is not as lightweight as tomcat, but supports the full Java EE, not just the servlet specification) runs nicely on an even half way decent vps.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Anti DDOS DNS Solution (Views: 641)


Language:

Client Login

Email

Password

Remember Me

Search