this post was submitted on 02 Mar 2025
403 points (97.4% liked)

Selfhosted

59923 readers
480 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BlueBockser@programming.dev 1 points 1 year ago* (last edited 1 year ago) (2 children)

You still have 63% RAM available in that screenshot, there are zero problems with Java using 13% RAM. It's the same as the tired old trope of "ChRoMe Is EaTiNg My MeMoRy". Unused memory is wasted memory if it can be used for caching instead, so unless you're running out of available memory, there is no problem.

Also, the JVM has a lot of options for configuring its various caches as well as when it allocates or releases memory. Maybe take a look at that first.

Edit: Apparently people don't want to hear this but don't have any actual arguments to reply with. Sorry to ruin your "JaVa BaD" party.

[–] TrumpetX@programming.dev 6 points 1 year ago* (last edited 1 year ago)

Sad that you're downvoted for being right.

Java apps can be memory hogs, but anything else can be too. The jvm is exceptionally performant for persistently running apps.

[–] Opeth@lemm.ee 3 points 1 year ago

Yeah. Why have RAM when you're not gonna use it? The JVM is pretty efficient