Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  JNLP MacOS OutOfMemoryError  (Read 710 times)
0 Members and 1 Guest are viewing this topic.
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Posted 2011-12-05 20:37:29 »

In my JNLP, I set max-heap-size="1024m", but MacOS users very frequently have OutOfMemoryErrors.

1  
2  
3  
4  
<resources>
    <j2se version="1.6+" initial-heap-size="128m" max-heap-size="1024m" java-vm-args="-client -da"/>
    <jar href="IslandForge.jar" main="true"/>
</resources>


  • Is this a known/common problem?
  • Does MacOS simply need more RAM to run applications?
  • Does the "Apple Inc." JVM not honor the max-heap setting?
 

I know there are many MacOS users here. Any insight into how to improve launching my game is greatly appreciated.


Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #1 - Posted 2011-12-06 16:09:06 »

More info: It seems that Mac users tend to have 128MB RAM allocated, instead of the 1024MB specified in the JNLP. However, I have not been able to interview many to determine if they were running the raw JAR file (by downloading and double-clicking, without any command-line heap flag) or if they actually used the JNLP.

JNLP question: Should I just be providing the JNLP file, and not even offering the JAR file? In the past, this caused confusion when I updated the JNLP, but folks still had an old locally saved version. It looks like this might have been improved in late Java 1.6 (I'm not requiring 7 yet), but I don't have enough evidence to know if it works well in practice.

Can anyone enlighten me on good JNLP deployment practice?

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline BoBear2681

JGO Coder


Medals: 18



« Reply #2 - Posted 2011-12-06 19:50:39 »

For OS X stand-alone, you should consider bundling your game in a .app, for a more "native" deployment there.  The user can still double click on your game, and it'll allow you to specify your heap settings and whatever else you want.  There are discussions on how to bundle your app like this for Mac on this form, I believe.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #3 - Posted 2011-12-06 19:57:24 »

BoBear2681 - thanks for the advice. That's exactly what I'd like to do. I researched it a bit. The big hangup was how to include the necessary (and correct) JavaApplicationStub. It seems wrong to just download a binary file from someone else and include it. Why doesn't Apple provide an "official" copy to include? How do I maintain and support this over different MacOS versions? These are just a couple of the hurdles I have not yet overcome in creating a proper Mac .app bundle.

Clearly I'm not Mac-savvy, but I think it's a great platform, and I want to learn more. I'll do more research here at JGO.

Here's the primary external resource I've found:

http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline gouessej
« Reply #4 - Posted 2011-12-07 10:25:04 »

Hi

Is there a solution to force Mac OS X to honor the setting "max-heap-size" when using Java Web Start? Bundling my game as a .app is not an option. Maybe Mac OS X simply does not honor this property when it can't be supported by the hardware without swapping instead of crashing.

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.

atombrot (27 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!