Error loading SFE module (port out of range)

OK. Intel Mac, Core-2 Duo (64bit processor). OS X 10.5.x

Java 1.5 (32-bit)
The maximum seems to be somewhere between 2100 MB and 2200 MB.
Didn’t pin it down any closer than that.

Java 1.6 (64-bit)

No really noticeable limit. I tried 4,000,000 MB as max and it was
fine. Trying something similarly big as the minimum size, I decided
to kill the job since it was taking a while to allocate. Plus I don’t
actually have that much disk space on this machine.

Testing with OS X 10.4 and also PPC would be good as well.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

4Gb vista machine:

java.home = C:\Program Files\Java\jre1.6.0_05
java.version = 1.6.0_05
os.name = Windows Vista
os.version = 6.0
os.arch = x86
maxheap = 1398


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Actually I can take a guess why its weird. Although I have 4GB of ram my
boot up only indicates there is only 3.5 suggesting I have a bad chip or
block of memory in one of the RAM sticks and it hit that sector perhaps?

Post generated using Mail2Forum (mail2forum.com)

Tim McCaron wrote:

AGP aperture? Or whatever super-fast-son-of-PCI-with-a-funny-connector
it is this week, I presume it still needs a hole in the memory map to
stick the graphics card in…

Cheers,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Brent Easton”:

Thanks everyone for trying this. Your prompt replies made it possible
for me to craft what I think is a solution to the problem, and quite
possibly one of the weirdest pieces of code I’ve ever written. (Check
out VASSAL.tools.HeapFinder and VASSAL.tools.HeapFinderDummy if you
don’t believe me.)

Try the svn3950 build.

nomic.net/~uckelman/tmp/vassal/

If you’re on a 32-bit system and set a maximum heap size in the
Preferences for a module to something too large for your JVM, then the
next time you open that module, the Module Manager will try t
determine a more appropriate maximum heap size (in this case, 75% of
the maximum maximum heap size) and run the module with that instead.
If that happens, you’ll get a warning dialog which will remind you to
adjust your maximum heap size (once I’ve written the warning message).


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Joel Uckelman:

Does anyone know if it’s possible to determine from within Java how
much physical RAM the host machine has? This exercise got me thinking
about a heuristic for determining optimal heap settings for the user
(so that the user only has to mess with heap settings in the event that
he doesn’t like the ones the heursitic gives him).


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

This doesn’t seem possible outside of Runtime.exec() followed by Process.getOutputStream(). The JVM appears to know only about how much memory has been allocated. However, if you’re only worried about Win32, this may not be so bad.

  • M.

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Rodney Kinney”:

Follow-up: You can read the path to the JRE installation from the
“java.home” system property, and “java.home” + “/bin/java” is the
path to the JVM in use.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

On Linux, we can read it from /proc/meminfo. Do Macs have that? What
command could we call on a Windows system?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Aug 2, 2008, at 6:38 AM, Joel Uckelman wrote:

Macs don’t.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Thomas Russ:

What do Macs have instead?

J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Aug 2, 2008, at 9:13 AM, Joel Uckelman wrote:

I’m not sure.

I did some looking around, but couldn’t really find anything that
seemed all that similar.
Otherwise, I’m not sure how you would get that information short of
using some type of Mac-specific system calls.

There is vm_stat but that just shows virtual memory:

% vm_stat
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 407882.
Pages active: 38290.
Pages inactive: 48172.
Pages wired down: 29944.
“Translation faults”: 380339.
Pages copy-on-write: 22430.
Pages zero filled: 160341.
Pages reactivated: 0.
Pageins: 21564.
Pageouts: 0.
Object cache: 4102 hits of 7811 lookups (52% hit rate)


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Jeffrey Brent McBeth:

Does ‘free’ exist on a Mac?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Joel Uckelman wrote:

Nope. Best I can find is ‘system_profiler’:

tim@feathers:~$ system_profiler SPMemoryDataType
Memory:

SODIMM0/J25LOWER:

Size: 1 GB
Type: DDR SDRAM
Speed: PC2700U-30330
Status: OK

SODIMM1/J25UPPER:

Size: 1 GB
Type: DDR SDRAM
Speed: PC2700U-30330
Status: OK

You can have the output in XML instead if that’s easier to parse.

Cheers,
Tim.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Aug 2, 2008, at 2:03 PM, Joel Uckelman wrote:

Not as a console command.

n.B. I’ll be away from Email for the next week, so I’m going silent
here.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)