Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (542)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (604)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java memory footprint ...  (Read 2024 times)
0 Members and 1 Guest are viewing this topic.
Offline andyl

Senior Newbie




Java games rock!


« Posted 2003-01-20 09:06:32 »

An old one this - but I haven't been around Java for about 6 months.

Are Sun doing anything about the memory footprint of Java (esp. Swing) apps? I just loaded up SwingSet2 under JRE1.4.1_01, only to be appalled to see 69MB of memory being swallowed up. And this app doesn't even do anything useful! This is unreal.

Angry
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #1 - Posted 2003-01-20 10:00:36 »

No, it's real. But this is a biased value. We have a really large Java/Swing app satisfied with 64MB as well. So don't be afraid.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Online princec

« JGO Spiffy Duke »


Medals: 439
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2003-01-20 11:59:09 »

Microsoft Word is a behemoth of an application, but I note that it only takes up 8MB when loaded...

The general Java overhead is still quite high and one of Swing's Achilles' heels is the fact that it creates so much stuff for an apparently very simple end result.

My game takes up 21.5MB so far while it's running and there's not even a teeny bit of AWT in it. Only about 6MB of that is heap; there's 1MB of sound, 1MB of graphics, a few MB of .DLLs for OpenGL etc, and 3MB for (my) bytecode. Then there's rt.jar classes and VM overhead: compiled code, hotspot profiling information, a bit of free heap, some stack, and the Sun .dlls. If I added a Swing front end to it I can see my memory requirements doubling and no longer being able to fit comfortably on a low-end machine.

There's a rumour that we'll get a Java execution service with the 1.5 release which will move all executing Java code into one process and cut most of that overhead out for concurrent executions but that doesn't cut the straight-up 6MB overhead that you can't escape from. Here's hoping...

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Devvie




Friendly fire isn't friendly!


« Reply #3 - Posted 2003-01-20 12:11:34 »

What do we learn? If you make a Java app, make a big one! Better don't make a set of tiny utilities...

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Online princec

« JGO Spiffy Duke »


Medals: 439
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2003-01-20 20:05:43 »

Cheesy Roll Eyes Grin

Cas Smiley  

Offline andyl

Senior Newbie




Java games rock!


« Reply #5 - Posted 2003-01-20 20:44:34 »

Looks like you can't write a small application, so I'd have to agree with that.

Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Elsealabs (15 views)
2014-12-28 10:39:27

CopyableCougar4 (19 views)
2014-12-28 02:10:29

BurntPizza (24 views)
2014-12-27 22:38:51

Mr.CodeIt (14 views)
2014-12-27 04:03:04

TheDudeFromCI (19 views)
2014-12-27 02:14:49

Mr.CodeIt (26 views)
2014-12-23 03:34:11

rwatson462 (58 views)
2014-12-15 09:26:44

Mr.CodeIt (47 views)
2014-12-14 19:50:38

BurntPizza (96 views)
2014-12-09 22:41:13

BurntPizza (115 views)
2014-12-08 04:46:31
How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!