0

I am wondering about the efficiency of small Java applications. I would like to write a small screenshot application that sits in the taskbar tray. Since this application will be very small and always running, is it worth the overhead of having a JVM running in the background all the time? Thank you in advance for any help.

EDIT: Rephrasing question: Is this an example of something that would be better written in an application that could be run natively instead of Java which requires a JVM to run?

Joe
  • 800
  • 4
  • 10
  • 26
  • Do you mean an application for windows? – MariuszS Nov 02 '15 at 21:08
  • How should we know if it's worth it? You're the one who'll be using it. – Kayaman Nov 02 '15 at 21:12
  • http://www.java.com/en/download/help/sysreq.xml from http://stackoverflow.com/questions/11395667/what-is-the-minimum-configuration-to-run-the-jvm – MariuszS Nov 02 '15 at 21:15
  • Yes, I am on a Windows machine. – Joe Nov 02 '15 at 21:16
  • Is 128MB (minimal requirements for Windows) a lot or a little for you? – MariuszS Nov 02 '15 at 21:17
  • I am on a powerful machine. So I don't have any problem running a JVM. I will rephrase the the question above. – Joe Nov 02 '15 at 21:20
  • [other JVMs](https://en.wikipedia.org/wiki/List_of_Java_virtual_machines) may have lower memory footprint, especially if they're interpreter-only and don't have to keep compiled code in memory, although that comes at a hefty performance cost. – the8472 Nov 02 '15 at 22:56

1 Answers1

1

As said above, you have to know whether it is worth it. If you want to minimize the memory footprint of your application have a look at the guide from Oracle:
Tuning For a Small Memory Footprint

Yeti
  • 1,108
  • 19
  • 28