JVM can´t allocate same heap mem after crash!

Hi!
I have a curios behavior of the JVM
HW info:
CPU: Intel i7
Mem: 4GB
OS: RedHat 5.5 32-bit
Kernel: 2.6.33
JRE: jre-1.6.0_30-fcs
(have try newer JRE with same behaviors)
On a clean new installed system I can start our java application with following commands/params
"java -Xms2048m -Xmx2048m -server cp bin/* com.nnn.nnnn.nnnn.ClientProgram"
After a while the application is crashed, (we are tracking that problem)
== Log info
2012-02-13 16:09:14,234 - appl_e1: #
2012-02-13 16:09:14,234 - appl_e1: # A fatal error has been detected by the Java Runtime Environment:
2012-02-13 16:09:14,234 - appl_e1: #
2012-02-13 16:09:14,235 - appl_e1: # SIGSEGV (0xb) at pc=0x1b30eafc, pid=5254, tid=459979664
2012-02-13 16:09:14,235 - appl_e1: #
2012-02-13 16:09:14,235 - appl_e1: # JRE version: 6.0_18-b07
2012-02-13 16:09:14,235 - appl_e1: # Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode linux-x86 )
2012-02-13 16:09:14,235 - appl_e1: # Problematic frame:
2012-02-13 16:09:14,235 - appl_e1: # C 0x1b30eafc
2012-02-13 16:09:14,235 - appl_e1: #
2012-02-13 16:09:14,236 - appl_e1: # An error report file with more information is saved as:
2012-02-13 16:09:14,236 - appl_e1: # /tmp/hs_err_pid5254.log
2012-02-13 16:09:14,243 - appl_e1: #
2012-02-13 16:09:14,243 - appl_e1: # If you would like to submit a bug report, please visit:
2012-02-13 16:09:14,243 - appl_e1: # http://java.sun.com/webapps/bugreport/crash.jsp
2012-02-13 16:09:14,244 - appl_e1: # The crash happened outside the Java Virtual Machine in native code.
2012-02-13 16:09:14,244 - appl_e1: # See problematic frame for where to report the bug.
2012-02-13 16:09:14,244 - appl_e1: #
===
(Unfortunately the log file is wioed out :-(( . Will post one when we get the crash )
Next time we try to start with same parameters the JVM can not allocate memory
==
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine
==
If we decrease the heap mem to 1536m we can start the application (JVM can allocate memory for the heap)
After rebooting the system we get same error with a heap of 2048m
It is possible to start it with a heap of 1536m
The most curios is if I reinstall the system I can allocate a heap of 2048m to the next crash !!!
Where is the information for the JVM about the heap mem allocation?
It must be somewhere on the file system?
//U

jschell wrote:
The most curios is if I reinstall the system I can allocate a heap of 2048m to the next crash !!!Presuming that you are not mis-reporting or mis-evaluating something...
linux-x86 On Linux virtual memory relies on file space that exists on the harddrive which is dedicated to that purpose.
The file space is just like any other file space.
If that file space fills up, for any reason, then the OS will appear to run out of memory for applications.
The one time this happened to me the virtual space was mapped such that regular files were using the space. Specifically my log files. So as the log files grew the application memory decreased.And if the crashed JVM generates a core file...

Similar Messages

  • Can i use same licence for after effects 7 on multiple computers

    can i use same licence for after effects 7 on multiple computers

    you can install on any number of computers, but you can activate on, at most, two computers concurrently with a single user license.

  • Can't get icloud to restore after crash from ios 8.1 update, says server not avaible, any suggestions?

    Had ipad2 crash during ios 8.1 update, tried different things to make it work, ended up booting as new.  Tried on a couple different days to restore from clould and it says server  not avaible, would love to get the info back, any suggestions?

    Can someone tell me the implications of using the command RESET DATABASE on my system days after I did the open reset logs? I opened the database with the ALTER DATABASE OPEN RESETLOGS in SQL not RMAN and I see the below note.....
    Re: Can't get dataguard to recover after SAN crash.
    To reset the incarnation of the target database in the RMAN repository, which means to do either of the following actions:
    •Inform RMAN that the SQL statement ALTER DATABASE OPEN RESETLOGS has been executed and that a new incarnation of the target database has been created. Note that if you run the RMAN command ALTER DATABASE OPEN RESETLOGS (not the SQL statement with the same keywords), then RMAN resets the target database automatically so that you do not have to run RESET DATABASE. By resetting the database, RMAN considers the new incarnation as the current incarnation of the database.

  • Can't restart in any mode after crash during snow leopard install.

    i have had repeated kernel panics. taken laptop to apple store twice in the past few weeks and they found nothing. suggested upgrading to snow leopard (i was on leopard) and the computer froze and flashed during the install and crashed. now it won't start in any mode. not safe mode, off the leopard install disk. i either get a flashing folder with a question mark or just a black screen. anything else i can try or has the system totally crashed. this is an 07 macbook pro.

    heatharnold wrote:
    ...do I need to start all over.
    Daniel ~ Welcome to the discussions. If you didn't backup iWeb's key Domain file before the clean install, you'll probably need to start over. I say "probably" because even though you didn't deliberately back up the Domain file, perhaps you were running Time Machine — in which case, there's still hope:
    Recovering items using Time Machine and Spotlight
    Only iWeb's Domain file can be opened in iWeb. See this Apple doc on How to back up MobileMe data. It says:
    Any websites you have published with iWeb should still be available within iWeb. iWeb stores everything in a Domain file, normally located in the ~/Library/Application Support/iWeb folder (although it can be moved). If you no longer have this file, you can view your currently published pages and manually recreate them within iWeb, but there is no way to import published pages back into iWeb.
    You can manually back up the Domain file, or use Backup to back it up.
    Paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWebBackupretrieve.html
    And in future:
    _iWeb ’08: Backing up your Domain file_

  • Calloc can't allocate at 4K boundary after 2GB  on 8GB box

    I having problem with the code below. First mainstore is allocated and then storage is is allocated at 4K boundary. It is the second alloc fails when i try any value of mainsize >2046 (in MB). I get following error:
    HHCCF032S Cannot obtain storage key array: Not enough space
    I can get sucessful alloc on first alloc of 3500MB. It is the second alloc (which tries at 4K boundary) which fails at a value higher than 2046.
    Any suggestions?
    =========== code listing==============
    static void config_storage(int mainsize, int xpndsize)
    int off;
    /* Obtain main storage */
    sysblk.mainsize = mainsize * 1024 * 1024L;
    ======= first alloc statment =========
    sysblk.mainstor = calloc((size_t)(sysblk.mainsize + 8192), 1);
    if (sysblk.mainstor != NULL)
    sysblk.main_clear = 1;
    else
    sysblk.mainstor = malloc((size_t)(sysblk.mainsize + 8192));
    if (sysblk.mainstor == NULL)
    fprintf(stderr, _("HHCCF031S Cannot obtain %dMB main storage: %s\n"),
    mainsize, strerror(errno));
    delayed_exit(1);
    else
    { fprintf(stderr, _("HHCCF031S allocated %dMB main storage\n"),
    mainsize,);
    /* Trying to get mainstor aligned to the next 4K boundary - Greg */
    off = (long)sysblk.mainstor & 0xFFF;
    sysblk.mainstor += off ? 4096 - off : 0;
    ======= second alloc statment =========
    /* Obtain main storage key array */
    sysblk.storkeys = calloc((size_t)(sysblk.mainsize / STORAGE_KEY_UNITSIZE), 1);
    if (sysblk.storkeys == NULL)
    sysblk.main_clear = 0;
    sysblk.storkeys = malloc((size_t)(sysblk.mainsize / STORAGE_KEY_UNITSIZE));
    if (sysblk.storkeys == NULL)
    fprintf(stderr, _("HHCCF032S Cannot obtain storage key array: %s\n"),
    strerror(errno));
    delayed_exit(1);
    }

    I can get sucessful alloc on first alloc of 3500MBLooks like the process is reaching the virtual space limit for a 32-bit process.
    A 32-bit process cannot grow beyond 4G (including heap, stack, text, data and libraries) virtual address space, irrespective of the physical memory installed on the system.
    If you can go for 64-bits, try to compile it with relevant options.

  • Admin can't login (10.4.7) after crash but other users can

    Had a bad crash where I just could not quit an application or relaunch Finder so I restarted the machine (think this might have been the first time I restarted since 10.4.7 was downloaded).
    When the system started back up I entered my (admin) password and it looked as though everything was Ok but then got the login screen again. Same thing happened.
    My son tried logging in with his account and it worked fine but as soon as I tried, just the log in screen came up again. Tried resetting the password but no joy.
    I have restarted from install disc, done a Verify Permissions and they were all over the place. After 3 times of running repair permissions it seemed OK. tried to Repair Disk but it checked OK and was not necessary. Verify Permissions seemed OK so restarted but exactly the same thing. My son can log in OK (I am using his account now) but I cannot.
    Anybody any ideas please?

    My guess is a corrupted preference - maybe Finder preferences. In my opinion you have 2 options here:
    1) Create a new admin account. You should be able to do this from your son's account simply by opening the "Accounts" section of System Prefences and authenticating as the admin. Login as the new admin. If that works, move/copy documents from the "old" admin account to the new one (easier said than done...), then delete the old admin account.
    2) Try removing the Finder preferences file. There are several ways to do this. First, you should try booting in "safe" mode. To do that, first shutdown the Mac (power it off). Turn it on again, and immediately hold the shift key. Keep holding it until you see the login screen. At this point, try logging in as admin. If it works try moving the file Library/Preferences/com.apple.finder.plist to the trash. Reboot and see if that helps.
    If that doesn't work, I would try as follows:
    login to son's account
    open Terminal. This is in Applications/Utilities
    switch to the admin account by entering "su - admin" (substituting the short name of the admin account for "admin")
    Change directory to the preferences with "cd Library/Preferences"
    Rename the Finder preferences file with "mv com.apple.finder.plist com.apple.finder.plist.old"
    "exit"
    Logout of son's account and try logging in as the admin
    G5 Tower   Mac OS X (10.4.2)  

  • How can I get Lion re installed after crash and no recovery disk?

    I bought Lion some time ago I did not do a recovery disk and now I had a huge crash. I started over with Snow Leopard cause that's all I had. How can I get Lion re installed?

    Make sure you're up to 10.6.8 through Software Updates, and then re-download Lion from the App Store.
    Incidentally, many Macs (from 2010 models onwards) have the ability to run Internet Recovery, even if your original hard drive crashed, which will allow you to re-download and install Lion directly from the internet.
    But the best way is always to have a local backup of your system drive.
    Matt

  • Can there be more than one JVM Running on the same machine

    Can there be more than one JVM Running on the same machine.

    Even JVM's of different versions (or vendors) can run on the same box at the same time.

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • Can we remain in the same state even after clicking submit button?

    Hello All,
    Can we remain in the same stage even after clicking submit button? Also it should remain in the same stage only when certain conditions are met. For eg:
    Condition : In Stage1, CustomFieldA default value is 'No'. To pass from Stage1 to Stage2 the CustomFieldA value should be made to yes.
    Scenario 1 : CustomFieldA value is 'No', and I click on Submit .
    Expected Result : should remain in the same stage
    Is above result achievable in PS 2013? I am creating workflow in Visual Studio 2012, so can I handle this in the workflow?
    Please help.

    The above answer was proved wrong, so please follow this link to get the answer.
    http://social.msdn.microsoft.com/Forums/en-US/8c75d74d-1ea6-4273-96cd-e70f5a5688fc/how-to-remain-in-the-same-stage-even-after-clicking-submit-button?forum=project2010custprog

  • I bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    i bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?
    Short answer: not for CS5.
    Platform swaps are available but only for CS6
    Order product | Platform, language swap

  • How I can delete remained files on phone mem after...

    How I can delete remained files on phone mem after removing apps?
    Because it uses a lot of space and I can't use many apps and it says:
    "Memory card full.remove some files first."

    You cannot delete the default apps. Only those that you have added.
    Default apps wiggle, but they don't delete.

  • My email keeps loading the same emails even after deleting them.  They keep coming back everytime I start up the mail app.  What can I do?

    My email keeps loading the same emails even after deleting them.  They keep coming back everytime I start up the mail app.  What can I do?

    After you delete them, empty the trash before they re-load.

  • Can I have 3 version of After Effect at same time?

    Hi
    Can I have 3 version of After Effect on my system, I have many tutorials that were made at After Effect6.5, 7 and CS3, so I want to have all of them.
    I dont know it is possible or not but if I it is, which versions should I start to install first?
    Thanks for any help.

    I have all three versions of AE installed on a Mac Pro without problem.
    I'd install them in chronological order, 6.5, then 7, then CS3.

  • VM exits without throwing any exception if it can't reserve enough heap.

    Hi,
    I have spent the whole day searching for a solution to this problem or atleast to get some clue in any of the forums but still not able to :(
    I have a simple application just as simple as HelloWorld program that prints some message,say "Hi There", using a JOptionPane. I have created the .exe using InstallAnywhere and have specified the parameters to reserve heap as follows:
    -Xms300M -Xmx2048M -Xmn80MUnfortunately, I have a total of only 1GB RAM on my system and since I have specified -Xmx2048, the application closes immediately without even throwing OutOfMemoryException.
    When I tried launching the same application using command prompt specifying the same parameters to reserve heap (java -Xms300M -Xmx2048M -Xmn80M -cp . ClassName), I could see the following error:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    I can see the above error message only when I launch it from command prompt and not when I launch it from InstallAnywhere's .exe.
    However, I can see the above error message in the latter case if I keep the Ctrl key hold down while launching the application. If I dont hold down the Ctrl key, the application console simply appears for a moment and closes before user can see what exactly is happening.
    Is there any way of flagging some error message to the user to indicate that VM couldn't reserve the specified heap size since it's not presently available before closing?
    Any help in this regard would be highly appreciated.
    Thanks,
    Umesh

    jschell wrote:
    The most curios is if I reinstall the system I can allocate a heap of 2048m to the next crash !!!Presuming that you are not mis-reporting or mis-evaluating something...
    linux-x86 On Linux virtual memory relies on file space that exists on the harddrive which is dedicated to that purpose.
    The file space is just like any other file space.
    If that file space fills up, for any reason, then the OS will appear to run out of memory for applications.
    The one time this happened to me the virtual space was mapped such that regular files were using the space. Specifically my log files. So as the log files grew the application memory decreased.And if the crashed JVM generates a core file...

Maybe you are looking for