EmuNewz Network
Java privilege problems, can't use large page memory... - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: General discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=57)
+---- Thread: Java privilege problems, can't use large page memory... (/showthread.php?tid=135786)



Java privilege problems, can't use large page memory... - DeStroYeR - 03-19-2013

I get this when I try to start it:

"Java Hotspot™ Client VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
Error occured during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occured. Program will exit."

Should I have the JVM specifically run as admin or Java in general?

These are my specs:

OS: Windows 7 Ultimate (64-bit) SP 1
CPU: Inte Core i7 2600k @ 3.4Ghz.
RAM: 8GB DDR3 PC-12800 @ 1600MHz (Dual-Channel)
GPU: 1gb Sparkle GeForce GTX 560 Ti (SLI)

I set up the JPCSP settings according to this thread.

Help is very much appreciated.

EDIT: Aaand starting it with the batch file and trying to load FFIV CC got me this:

Running Jpcsp 32bit...
Exception in thread "GUI" java.lang.OutOfMemoryError: Java heap space
at jpcsp.MainGUI.loadFile(MainGUI.java:1457)
at jpcsp.MainGUI.OpenFileActionPerformed(MainGUI.java:1410)
at jpcsp.MainGUI.access$500(MainGUI.java:111)
at jpcsp.MainGUI$6.actionPerformed(MainGUI.java:413)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)


RE: Java privilege problems, can't use large page memory... - shenweip - 03-19-2013

If you want to use large memory,you should use 64 bit Jpcsp.


RE: Java privilege problems, can't use large page memory... - DeStroYeR - 03-19-2013

(03-19-2013, 02:25 AM)shenweip Wrote: If you want to use large memory,you should use 64 bit Jpcsp.

I read that you can't use SonicStage or MediaEngine with the 64-bit version. Or something like that.


Java privilege problems, can't use large page memory... - DeStroYeR - 03-20-2013

Help? I think I managed to allow Java to lock pages in memory but I still get a bunch of errors.

Here are my JPCSP settings:

Settings for FFIV CC:
[Image: jpcspsettings.png]

[Image: jpcspsettingpage1.png]

[Image: jpcspadvancedjava.png]

[Image: jpcspgarbagecollector.png]

Trying to start it after that got me this error:

"Running Jpcsp 32bit...
Java HotSpot™ Client VM warning: Individually allocated large pages
failed, use -XX:-UseLargePagesIndividualAllocation to turn off
Java HotSpot™ Client VM warning: Individually allocated large pages failed, use -XX:-UseLargePagesIndividualAllocation to turn off
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit."

Does the 64-bit version work properly now?