r/linuxquestions • • Jun 12 '20

Resolved Why does everyone hate Java applications?

I see it generally everywhere I go as a Linux user: almost everyone has some kind of problem with Java applications. I understand Java as a development platform has some rather infuriating holes regarding its deployment methods, and the most common issue I've seen are memory leaks and just how memory hungry the applications can be by themselves.

Is it a concept of purity? Or is is just because of some other reason that seems to escape me? I use some Java applications almost daily without problems. So why the grudge?

Opinions, rather than absolute answers, are expected.

Resolved -- Technically, there have been several wonderful and informative answers here on this post. Some answer the question better than others. However, not one singular answer is fitting enough to answer this question, so I thank everyone who took the time out of their day to enlighten me about Java and its rather unfortunate history. Thanks again!

128 Upvotes

137 comments sorted by

View all comments

16

u/henry_kr Jun 12 '20

From a Sysadmin point of view, I'm not keen on Java because:

  • Services are really slow to start up and stop.

  • They use a lot of resources, memory in particular.

  • They reinvent the wheel with logging, and don't use standard system provided logging.

Now this is all from my personal experience, and it could be that the particular programs that were running on systems I was responsible for were badly written, but I see the same problems with different Java programs time and time again.

5

u/Delta-9- Jun 12 '20

They reinvent the wheel with logging, and don't use standard system provided logging.

Holy fuck, this. I spent a week trying to get Tomcat to play nicely with Logrotate and finally gave up. For this reason alone, fuck Java and the NIC it rode in on.

1

u/henry_kr Jun 13 '20

I also forgot to mention that the logs themselves have never been very useful to me. When I've been called out at 3am (thankfully that was in an old job and I don't do that any more) I don't want to read pages and pages of stacktraces, I want to see what it's failing to connect to etc etc.