CreateJavaVM fails with JNI_ENOMEM (-4) even though there is enogh memory

Hi,
I am creating a VM on Win XP using JNI_CreateJavaVM. It fails when I add an option "-Xmx1024M", error code being JNI_ENOMEM (-4). It works with "-Xmx500M". The system has 2GB memory, other java processes (non-JNI) start without problems even with more than "-Xmx1024M".
Any ideas?
Bye,
Michael

I have a similar, but I think much simpler problem. Namely, I get ENOMEM's when as far as I can tell there's plenty of memory available. It seems to have something to do with how Windows is configured, although I've never been able to determine what it could be.FWIW, in my case, I found that if I loaded my JNI dll into a console process, the max heap requested was always allocated. But when loading into Excel, the same amount would be too much. This was partly due to the fact that Excel has its own memory management, limiting the amount of memory workbooks can use. Also, it could be due to the vm not being able to reserve a contiguous chunk of memory for the max heap space.
Why (and how) separate the permanent generation space from the rest of the max heap? It seems you'll fail if you can't get that much space (which is the why) but how did you determine what it is?The VM uses the perm gen space plus the requested max heap space when attempting the VirtualAlloc call to verify that it can allocate the specified amount. The default perm gen is 64MB, but that can be changed via the -XX:MaxPermSize vm parameter, so I allow for any requested value.
What's CRUSH_JNI_VERSION? It's not in any .h file I have.That's just my own constant defined to be either JNI_VERSION_1_4 or JNI_VERSION_1_6.
Why are you messing with the bootclasspath? (I suspect you're adding something to it. Generally the VM can find it's own damn classpath).Yep, I'm adding the 2.1 JAXB jar to the bootclasspath because earlier 1.6 distributions included JAXB 2.0 and I needed 2.1.
-sarah

Similar Messages

  • My apple Tv will not airplay, this is the 3rd one i have exchanged and my devices airplay just fine elsewhere, could there be a problem with the wifi even though all of the other functions are working fine?

    My apple Tv will not airplay, this is the 3rd one i have exchanged and my devices airplay just fine elsewhere, could there be a problem with the wifi even though all of the other functions are working fine?

    Hello there, AntRambo.
    The following Knowledge Base articles may provides some steps to go over for troubleshooting your issue:
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    And also the following:
    iOS: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS4215
    Particularly but not exclusively of note:
    If the AirPlay icon doesn't appear
    Ensure that you have followed the steps in using AirPlay and AirPlay Mirroring.
    If you are still unable to see the AirPlay icon  , try one of the following steps:
    If trying to AirPlay, or AirPlay mirror, to your Apple TV, ensure that AirPlay is enabled on your Apple TV as well. You can enable or disable AirPlay on Apple TV in the AirPlay menu: Settings > AirPlay.
    Check Internet or network connectivity on all affected devices. Some content requires an Internet connection to authorize content playback. AirPlay capabilities may be limited if your network is not connected to the Internet.
    If attempting to use AirPlay from a third-party app or a website from your Safari app on your iOS device, confirm that the app or website is AirPlay compatible (refer to the developers of the app or website for additional information).
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro

  • In addition to my home page, every time I start Firefox a tab opens with notifacation of an updated addon. Why does this tab continue to appear even though there is no updated version of the addon?

    In addition to my home page, every time I start Firefox a tab opens with notification of an updated addon. Why does this tab continue to appear even though there is no updated version of the addon?

    See these articles for some suggestions:
    *https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

  • HT201302 Even though there are over 200 photos on my ipad, after trying both methods of importing and connecting with a lead, a message appears saying that there are no photos on this device. Any ideas?

    Even though there are over 200 photos on my ipad, after trying both methods of importing and connecting with a lead, a message appears saying that there are no photos on this device. Any ideas?

    Did you connect your iPad to your computer then open the application on your computer that transfers photos from a camera? Your computer should recognize the iPad as a camera. All photos in the Camera Roll on the iPad should then be seen and you should be able to copy them to the computer using that application.
    Photos that were synced to your iPad by connecting to your syncing computer cannot be copied back this way as the master file for those photos are on the syncing computer.

  • Can anyone help with iCloud not backing up iPad even though there's sufficient space?

    iPad 3 not backing up in iCloud even though there's sufficient space

    Unfortunately, there is no way to expand the partition upwards. As you noted, you would need to either start afresh, or simply find a good use for the first partition.

  • I have several users in an exchange environment who cannot email a photo from the iPhone.  When the click on Email Photo, they are prompted to configure a mail account even though there is already an exchange account in place.  How do I remediate this?

    I have several users in an exchange environment who cannot email a photo from the iPhone.  When the click on Email Photo, they are prompted to configure a mail account even though there is already an exchange account in place.  How do I remediate this?  Not all of the users in our environment have this issue.  If the users having this issue, install a secondary email account, Gmail, Hotmail, etc, then they can send through those accounts.  Why would the exchange account not be seen to send photos?

    Sounds like it worked until the policies associated with the account that are creating the problem were fully pushed down.
    Try setting up a new (test) Exhange account and see if it behaves the same way on the phone (after removing the problem account from the phone, of course).

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • When I synch my ipod touch it only lets 50 videos get on ipod . I can't get the other videos on even though there's plenty of space available and it's set to synch all movies

    When I synch my ipod touch it only lets 50 videos get on ipod . I can't get the other videos on even though there's plenty of space available and it's set to synch all movies. What am I missing?

    i had the same problem. did a lot of research..my phone became unusuable. do you use the htc mail? if so that is your problem. there is a bug with it that it keeps eating your memory until you cannot use your phone. i had to do a hard reset. back to factory condition..not happy! but then went to the marketplace and got k-9 mail. that is now my default mail program. i have not had any issues since then. this is what i kept reading over and over for complaints on this phone. it is a major glitch and the only way, as of the time it happened to me, to fix it..

  • My ipad2 does connects to 3G even though ther is available wifi. How can I make it prioritize wifi?, My ipad2 does connects to 3G even though ther is available wifi. How can I make it prioritize wifi?

    My ipad2 connects to 3G even though there is available wifi. it finds the network but loses it in seconds and turns again to 3G. I've tried resetting network settings, rebooting iPad etc with no luck
    Thanks

    If you are not using data and the iPhone goes to sleep, it will automatically drop the wi-fi, and will not reconnect until you wake the phone up. That is the way it is designed. The only way around that is to turn off cellular data while at home and on wi-fi.
    Cannot answer the xbox question since this is an iPhone forum and I would have no idea.

  • After upgrading to 3.6.8 none of the plugins load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log.

    After upgrading to 3.6.8 none of the extensions load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log. All extensions are listed in Addons>Extensions.
    == This happened ==
    Every time Firefox opened
    == Upgrading to newer Firefox version (3.6.8)

    I have been having the same issue for the last two weeks. No real indication as to why it ever began other than I had turned off my router and Airport Extreme Base Station off for a weekend while I was away from my place.
    iPad, iPhone, iPod Touch, all have no issues at all with my Airport Extreme Base Station. Can stay connected throughout my living room, bathroom, bedroom, no issues whatsoever.
    My 5 month old MacBook Pro 2.66 GHz Core i7 Airport is sometimes perfect, able to connect, DHCP, and browse without issue. Then, for no reason, I won't be able to join my wireless network, or when I can join, I can't pick up an IP address. And then it will connect, pick up and IP, and then it won't browse. No real rhyme or reason to when this will happen, or when it works.
    I thought that it was an issue with my MacBook Pro, but then my sister visited with her brand new MacBook Pro 2.26 Intel Core 2 Duo, and while a month ago she was able to connect, DHCP, and browse without issue, this weekend she had all of the same issues I was having.
    My XBOX 360 and MacBook Pro have absolutely no issues with the wired connection. Only my WAN seems to have this issue.
    Did you ever find anything more to this?

  • TS1424 I've just downloaded an album and at least two tracks are incomplete, even though there was no error in downloading

    I've just downloaded an album and at least two tracks are incomplete, even though there was no error in downloading reported.

    Depending upon what country that you are in (music can't be re-downloaded in all countries) have you tried deleting them from your iTunes library and redownloading them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes ? Re-downloading.
    If you aren't in a country where you can re-download music or if it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find those songs and use the 'Report a Problem' link.

  • I was using my Macbook when it suddenly shut down, I was updating a program so I had the charger on even though there was still 90 percent of power in the computer. I tried to turn on the computer several times but is not working, what can I do?

    I was using my Macbook when it suddently shut down, I was updating the operating system so I had the charger on even though there was still 90 percent of energy. I tried to turn my Mac several times but it doesn`t turn on, also the green light of the charger is not working, it`s looks like the charger is dead too. What`s wrong with my Mac?

    Try resetting the SMC.
    MacBook and MacBook Pro with a battery you can remove
    Shut down the computer.
    Disconnect the MagSafe power adapter from the computer, if it's connected.
    Remove the battery.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Reconnect the battery and MagSafe power adapter.
    Press the power button to turn on the computer
    To reset the SMC on newer Mac portables with a battery you cannot remove
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.  
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.

  • HT201302 what should i do if it says there are no photos found on my device even though there are?

    What should I do if when trying to import pictures from an ipad it says there are no pictures even though there are?

    This information should help
    Issue or symptom
    iTunes may display a message that it could not update iPod because the firmware file was corrupt or not found.
    Products affected
    iTunes 7 or later
    Any iPod
    Solution
    The message does not indicate that there is an issue with the iPod but that iTunes was unable to read the firmware file it uses to restore or update your iPod. You can delete the folder containing the firmware files so iTunes can download a useable (non-corrupted) version.
    Here are the steps to take if you get this message:
    Eject iPod and quit iTunes.
    Use Disk Utility in Mac OS X or run chkdsk in Windows to verify there are no other issues on your hard drive.
    Locate the iPod Software Updates folder:
    In Mac OS X, the folder is
    ~/Library/iTunes/iPod Software Updates (~ represents your home directory)
    In Windows, the folder is
    C:\Documents and Settings\yourusername\Application Data\Apple Computer\iTunes\iPod Software Updates
    Note: If you don't see the files in Windows, turn on the Show hidden files option.
    Open My Computer.
    From the Tools menu, choose Folder Options.
    Click the View tab.
    In the Advanced Settings pane, select the "Show hidden files and folders" button.
    Click OK.
    Drag the iPod Software Updates folder to the Trash or Recycle Bin.
    Connect iPod and open iTunes. You will need to be connected to the Internet to download the files.

  • Deficit of stock even though there is stock

    Dear All,
    I have one proble during PGI,
    system shows me message M7 021 'Deficit of & & & & stock'  even though there is a stock according to transaction MMBE, MB5B on posting date.
    I transport this batch thru 101 movement against Production order thru tranasaction MB31.
    Thanks
    Chetan mistry

    Dear all
    Thank u very much for reply
    We found the solution and finally after period reopen we get all the stock in available stock.
    The only problem is that we open and close period twice and during it some batches are posted for this material and than stock for previous period is not available.
    Thanks and regards
    Chetan Mistry

  • HT5706 trouble staying connected to air play with Apple TV even though my device is still connected to the internet and playing.

    I am having trouble staying connected to air play with Apple TV even though my device is still connected to the internet and playing.

    Troubleshoot the network connectivity issues.
    Power cycling the ATV and router is generally a good place to start.

Maybe you are looking for

  • Creating a Web Dynpro table UI element

    Hi guys, I'm a new member and new Web Dynpro Java developer & I'm so glad to be getting involved in this community. My question is that I've created a table then I wanted to fill this table with data records but I didn't know how to do so. Should I u

  • Nikon D3s file orientation in Bridge cs4

    I have noted that the correct orientation of D3s nef files is occasionally ignored or randomly re-assigned in front of my eyes in Bridge essentials

  • ITunes Library File in Documents Folder? Mac problem not Windows

    I am confused! I have several very small iTunes Library folders in my Music/iTunes file which date back to iTunes 4. Some of the files are less than 10kb. I also have a folder titled Previous Libraries in my Music/iTunes file which has two Libraries

  • Network error []: Cannot Get Host Name

    Is there a config or other Essbase setting I can use to eliminate this error? My calc script completes successfully after an hour, the numbers are always correct. This error show up randomly. You don't see it for a week, then three days straight. The

  • Mac App Store, Lion, Remote Desktop

    Just installed Lion. Minimal problems. One is that I can't use the Mac App Store. The application runs, but I can't sign in, or (obviously) do anything that requires signing in. Just get "Connection failed." Similar problem with iTunes Store. No idea