What Distro is best for J2EE?

I've read a bit, and it seem Debian is popular.

I have a Linode 100

I use Gentoo at the moment, and although I like it generally, I don't like the

way it deals with Java. I just don't see the point in compiling every Java

package. And, I certainly don't like having to fetch libs just to compile, and

test, when I don't plan on doing any of that on my server.

I plan on building up the following

Tomcat 5.0

Java 1.5 (sun jdk)

postgresql 8

I may run Apache someday, probably not sure.

I also use my system as an imap mail server

postfix

courier-imap

sasl

Any one recommend the best distro. I don't might a learning curve provided

It will be easy to maintain in the end. (Not into "fun" linuxes on servers.) I

like small, so RH is probably out.

Thanks!

3 Replies

Debian's generally pretty good. However, I just ditched it in favor of CentOS because Debian still hasn't released a sendmail update to fix CVE-2006-1173, when CentOS had an update out on the day it was announced! This isn't the first time that Debian has dragged its feet on a sendmail update. :evil:

Moral: if you're a dyed-in-the-wool sendmail user, don't use Debian.

Given that my Debian setup was a bit on the fat side to begin with (with a VNC server and all of the X stuff it needs), there was little difference in overall size between the two distros.

I'm running a L150 with Tomcat 5.0.28, Apache 2.0.5x and Java 1.4.2_09.

I chose the L120 (now a L150) for the breathing room. Tomcat can be a memory hog, so be sure to tighten it down some in the startup scripts. For example:

JAVA_OPTS="-Djava.awt.headless=true -Xms32m -Xmx64m"

Also be sure to check into running the headless option if you are doing any image generation, e.g. CAPTCHA, Java Techniques discusses this in detail. FC2 will need some libraries, Another Caffeinated Day discusses this a bit :

> It is enough to say that my VPS host did not install the X libraries and I ended up with UnsatisfiedLinkErrors. Some research on Google and some knowledge of Linux distros, solved my problem. For the Fedora Core series I determined the following packages provided the necessary X libraries to satify the link errors on my Java/blojsom/OS combination (again I need to say, YMMV):

* Fedora Core 2: xorg-x11-libs

Fedora Core 3+: xorg-x11-deprecated-libs</list> 

[[url=http://javatechniques.com/public/java/docs/hosting/headless-java-x11-libraries.html]~~Java Techniques tells] you exactly what libraries are needed in a Java 1.4 environment, whereas the above packages have dependcies that need to be satisified. If the dependencies are a non-issue, load them, otherwise consider a method to get just what you need; [[url=http://javatechniques.com/public/java/docs/hosting/headless-java-x11-libraries.html]~~Java Techniques] outlines how one might go about doing so on RHL9.
Also be sure to look in to configuring PostgreSQL for tight memory environments. There is some discussion in the wiki and forums on this subject for MySQL. I'm sure PostgreSQL has similar build or configuration options.

Also be sure to check out the following on PostgreSQL configuration: Managing Kernel Resources

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct