Problem with out of memory and reservation of memory

Hi,
we are running a very simple java program on HP-UX that do some text substitution - replacing special characters with other characters.
The files that are converted are sometimes very large, and now we have come to a point where the java server doing the work crashes with "Out of memory" message. (no stack) when it process one single 500MB large file.
I have encountered this error before(with smaller files) and then I have made the maximum Heap larger, but now when I try to set it to 4000M
i get the message:
"Error occurred during initialization of VM
Could not reserve enough space for old generation heap"
When it crash with this message, my settings are:
-XX:NewSize=500m -XX:MaxNewSize=1000m -XX:SurvivorRatio=
8 -Xms1000m -Xmx4000m
If I run with Xmx3000m instead the java program starts but I get Out of memory error like:
java.lang.OutOfMemoryError
<<no stack trace available>>
The GC log file created when it crashes looks like:
<GC: -1 31.547669 1 218103808 32 219735744 0 419430400 0 945040 52428800 0 109051904 524288000 877008 877008 1048576 0.934021
>
<GC: -1 62.579563 2 436207616 32 218103808 0 419430400 945040 944592 52428800 109051904 327155712 524288000 877008 877008 1048
576 2.517598 >
<GC: 1 65.097909 1 436207616 32 0 0 419430400 944592 0 52428800 327155712 219048400 524288000 877008 877008 1048576 2.061976 >
<GC: 1 67.160178 2 436207616 32 0 0 419430400 0 0 52428800 219048400 219048400 524288000 877008 877008 1048576 0.041408 >
<GC: -1 128.133097 3 872415232 32 0 0 419430400 0 0 52428800 655256016 655256016 960495616 877008 877008 1048576 0.029950 >
<GC: 1 128.163584 3 872415232 32 0 0 419430400 0 0 52428800 655256016 437152208 960495616 877008 877008 1048576 3.971305 >
<GC: 1 132.135106 4 872415232 32 0 0 419430400 0 0 52428800 437152208 437152208 960495616 877008 876656 1048576 0.064635 >
<GC: -1 256.378152 4 1744830464 32 0 0 419430400 0 0 52428800 1309567440 1309567440 1832910848 876656 876656 1048576 0.058970
>
<GC: 1 256.437652 5 1744830464 32 0 0 733282304 0 0 91619328 1309567440 873359824 1832910848 876656 876656 1048576 8.255321 >
<GC: 1 264.693275 6 1744830464 32 0 0 733282304 0 0 91619328 873359824 873359824 1832910848 876656 876656 1048576 0.103764 >
We are running:
java version "1.3.1.02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.02-011206-02:17)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.02-JPSE_1.3.1.02_20011206 PA2.0, mixed mode)
We have 132GB of physical memory and a lot of not used Swap space, so I cant imagine we have a problem with that.
Can anyone please suggest what to do proceed troubleshooting or to change some settings? I'm not into this Java really so I really need some help.
Usually the java program handles thousands of smaller files (around 500 KB - 1 MB sized files).
Thanks!

You have a one to one mapping? Where one character is replaced with another?
And all you do is read the file, replace and then write?
Then there is no reason to have the entire file in memory.
Other than that you need to determine if the VM (which is not a Sun VM) has an upper memory bound. That would be the limit that the VM will not go beyond regardless of memory in the system.
We have 132GB of physical memory and a lot of not used Swap spaceOne would wonder why you have swap space at all.

Similar Messages

  • HT5137 I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    Personally, I would never use a debit card online, for security reasons.  If your card gets hacked its your money that is stolen.  At least with a credit card it is the card providers money that is stolen.
    Anyway,  I would delete the app and re-install.  If you paid for the app in the first place you will be able to re-install free of charge.  Also, the app should allow the in-app purchase to happen again as it should recognise that you have already purchased it previously.
    Finally, it might be that the 3G doesnt have as much ram as more recent models of iphone and you may have applications running in the background that are preventing the app to function with the in-app purchase unless you shut down any apps eating all you memory that are running in the background.  Shut-down these apps (and the simpson tap out app) by exiting to your home screen and double-tapping the home button to show what apps are running in the background.  press and hold any of the open apps until it starts shaking.  close all the apps down.  exit then re-launch the app.
    good luck.

  • Memory Problem With 4gb Crucial Ballistix and Asus M4A785TD-V EVO

    motherBoard: ASUS M4A785TD-V EVO
    bios Version :2005
    Video: amd hd5750
    Processor: AMD PHENON II X2 550 3.100MHZ
    Memory: Crucial
    Modele Memory: blt4g3d1608dt1tx0
    Capacity: 4GB
    greetings to all
    i have asus m4a785td-v evo mobo. i ve bought 4 gb crucial ballistix ram today. it says on product its 1600 mhz and cl8 but it shows on my pc 1333 mhz and cl9.  when i was searching for this problem i came across this topic: http://forum.crucial.com/t5/Crucial-Ballistix-gaming-memory/Memory-Probleme-With-8GO-Crucial-Ballistix-and-Asus-M4A785TD-V/td-p/9464 can i apply the same settings? how can i fix that?  is it possible via bios settings? thx in advance and sry for my bad english. here is some screenshots: 

    I am not good at RAM setting but the 'Timings Table' shows there is XMP-1600 profile available so I believe it would be enough to turn on that memory profile in BIOS.

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Communication problem with Adobe 9.0 and HP Printer when I scan

    I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
    Thanks.

    Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0   Had to go to Adobe 6.0
    Date: Thu, 17 Dec 2009 03:19:49 -0700
    From: [email protected]
    To: [email protected]
    Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
    May be that the HP software doesn't support Adobe Reader 9.
    >

  • I have an older version of Adobe Digital Editions (around 3 years old) and was very happy with it.  Then I had problems with my Kobo Reader and asked a friend who works in IT to assist. She could not fix the Kobo but she messed up my Addobe. She downloade

    I have an older version of Adobe Digital Editions (around 3 years old) and was very happy with it.
    Then I had problems with my Kobo Reader and asked a friend who works in IT to assist. She could not fix the Kobo but she messed up my Addobe. She downloaded version three and I have an account and a password - was not able to transfer my books from my reader to version three (and I don't like the lay-out - I would prefer to stay with the old version as I also loose all my download date info..)
    But all the books I have bought over the last three years are in the old Adobe Digital and I cannot access them any more. When I use it I get the message "that the document is licensed to a different account. I can't even open the books on my computer.
    When I go to my Kobo library, I cannot also not open my books and get the message "this doc is protected by adobe digital rights management and is not currently authorized for use with your adobe. please sign in with your authorized adobe id and try again"
    I believe the problem is that I do not seem to have a digital id for my old adobe or that the Kobo is not in sync with it anymore.
    can you please help me - going on vacation in three days and cannot go without books.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • I have been having problems with my iPod touch and my WRT...

    I have been having problems with my iPod touch and my WRT54G router. I am so frustrated right now because after following the various steps mentioned in one of these threads, following Earthlink's prompts, and speaking with Apple, my iPod touch will still not work. It is connected to the internet but will not download the pages. It is quite frustrating. I have changed from WPA to WEP, I switched the 4th Generated key to the 1st. I've disabled this, enabled that. I've done just about everything. I updated the firmware. I made the switch from a partial bridge to a full bridge. Still nothing seems to work. Does anyone have any other suggestions? The one thing I have not done is enter the Apple code into the iPod which searches for website...-- I cannot access the internet with my iPod so this web address does not work. If anyone has been successful, will you please give me step by step instructions? Yesterday I was on the phone with Linksys for about an hour. Before that with Apple for about an hour and before that with Earthlink. How it is that I can walk into a Bread Co. or Apple Store and immediately connect to the internet with my iPod but I can't in my own house?? Everyone seems to think it is someone else's problem so I've gone around and around. Not one of the Linksys support personnel suggested I look here on this community forum. I had to pay the $9 fee to have advanced Linksys help but still my iPod does not work and when I called back, the man I spoke with seemed to think the case was closed because my PC, Laptop, and iPod are connected to the internet -- the iPod just won't download the webpages or get mail. My iPod's IP address begins with 192. I would appreciate any help on this matter
    Message Edited by AlliW on 10-02-2008 02:06 PM

    I had the same issues with my iPod touch & iPhone. It's a known issue with the touch & Linksys G routers. Go into settings on the touch & do the following.
    1. Settings - wifi - linksys
    2. Erase your DNS settings & input same numbers as in router
    Settings.
    3. Http proxy should be
    in off position.
    4. Close out & open safari you should now have a wireless
    connection.

  • I'm having problems with CS2 (mainly illustrator and photoshop

    I'm having problems with CS2 (mainly illustrator and photoshop ) randomly shutting down while trying to save a file. Reformatted my laptop for fear of a virus and reloaded... I have gotten nowhere.
    Please Help!

    CS3 still had issues with the preferences becoming corrupt, so a possible workaround would be to reset the preferences.
    The file is called AIPrefs and is located under 'Documents and Settings/User/Application Data/Adobe/Adobe Illustrator CS3 Settings'. It is a hidden file. Delete it with Illustrator closed and when you launch the program again the file will be rebuilt.
    May be it is also sounds like you need more memory for your computer. If you can navigate to your computer's memory controls, and allow your operating system to use a portion of your hard disk drive (HDD) as RAM (maybe 2Gb or so) it may solve your issue.
    How is about: http://www.filerepairforum.com/forum/adobe/adobe-aa/illustrator/383-%E2%80%8Bcorrupted-fon ts-in-illustrator-file-urgent-help-need – resource has non-commercial specialty
    Third party software Illustrator Repair Kit also must be good solution
    It has free demo version at:- http://www.illustrator.repair/
    Hope this will be helpful.

  • Problem with  whitespace  then loading and saving xml

    i do not know how to handle this problem. i modifed a texteditor to send XML to a server and load XML back to the container.
    but then i do changes to the Textlayout it shows up like this --->
    Text in Container not modifed
    Text in Container modifed ---> with space beween the colorchanged string
    Text inContainersend and loaded ---> i think this has something to to with the
    TextFilter.export(_textFlow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE)
    can someone give me a hint...

    Hi,
    the link is --->
    http://www.horstmann-architekten.de/contentmanagment/SimpleEditor.html
    its a modified example of the texteditor provided by Adobe. You can send a xml to the server. and also read it from the server. You just use the xml identifer to give the xml a name.
    Try it out:
    1.  change the text and
    2.  give a XML-Identifer
         and then send it to the server. --> send to server
    3.  type in the XML-Identifer you have used and
    4.   load it from the server ---> Load from Server Button
    evering works ok exept the columns formating.
    I Think the colums Formating is not embeded in the XML as it should be. I attached the Files. (Newbie programmer)
    With best regards
    Michael Sprinzl
    --- robin.briggs <[email protected]> schrieb am Do, 17.9.2009:
    Von: robin.briggs <[email protected]>
    Betreff: Problem with  whitespace  then loading and saving xml
    An: "Michael sprinzl" <[email protected]>
    Datum: Donnerstag, 17. September 2009, 2:12
    Sounds like you have two different issues going on: (1) inline graphics aren't coming out correctly when you use the TextLineFactory, and (2) columns aren't working correctly. It's difficult for me to tell by looking at the application you link what is going wrong. One of the examples does seem to have columns working -- can you be more specific about what you're doing, and what results you are seeing? As for the inline graphics, there is a timing issue involved with using URLs, due to the asynchronous loading. See this comment in the docs for TextFlowTextLineFactory:
    Note: When using inline graphics, the source property of the InlineGraphicElement object   must either be an instance of a DisplayObject or a Class object representing an embedded asset.   URLRequest objects cannot be used. The width and height of the inline graphic at the time the line   is created is used to compose the flow.
    - robin

  • Hello I have a problem with my Iphone 5S and it`s under warrenty it doesn`t turn on and a blue screen cames up and it doesn`t reset what can I do, I live in Argentina Buenos Aires, please contact me soon, thank you

    Hello I have a problem with my Iphone 5S and it`s under warrenty it doesn`t turn on and a blue screen cames up and it doesn`t reset what can I do, I live in Argentina Buenos Aires, please contact me soon, thank you

    Where did you purchase the phone? Then, you can use this support document to find out how to contact Apple Support from your location. Contact Apple for support and service - Apple Support

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Any problems with Adobe CS5.5 and the Maverick system?

    Has anyone had any problems with Adobe CS5.5 and the new Maverick OS? I don't want to install if there are issues. Thanks!

    First thing I would suggest is to upgrade your server OS to a newer version if possible. Secondly try removing the apps out of the allowable apps list and instead change it so that you allow the apps that are within the specific application folder, ex: Applications/Adobe Photoshop CS5
    I had similar problems with CS5 apps and by adding the apps by allowable folder instead it corrected my problem. Granted, if you have savvy users, there is the potential to open a can of worms here but it was the only way I could get it to work for "standard" non-admin user types.

  • I'm having problems with Adobe Illustrator , Photoshop and MediaEncoder !

    I'm having problems with Adobe Illustrator , Photoshop and MediaEncoder !
    The ilustrator when opening files from a lack of memory of which I own already find it hard 11Gbram , Photoshop crashes inesperdamente and the Media Encoder is not converting the video in nnehuma the options requested .
    Would like guidance , never had such problems with Adobe software . Today got a MacPro 2x2,2.66 Ghz Dual Core Intel Xeon 11Gbram 240GB SSD .

    Hi Mw,
    Will it be possible for you to join the connect session: https://my.adobeconnect.com/rbhunwal
    I want to have a look into this.
    Thanks & Regards,
    Raghuveer

  • Wireless printing problems with 10.5.4 and Epson printers

    Anyone else know about problems with Epson printers such as this no longer functioning wirelessly with bonjour once upgrade to 10.5.4? It appears they are not supporting this with a new driver yet?
    At this time, Epson says they have no drivers for 10.5 and this specific printer but wondered if there are more general problems with 10.5.4 and bonjour with Epson or others?
    Thanks
    Paul
    MacBook Pro Mac OS X (10.5.4) Using Epson CX11-NF printer

    I have 5 computers-G4 PowerPC, two G4 12" laptops, G5 Mac Pro dual, Macbook Pro--with the older computers all running 10.4.11, the new ones 10.5.4. Until Friday, I was able to print with all of them to an Epson Stylus Photo R200 via Airport Extreme. After installing software for my new G3 iPhone on the G5 Mac Pro the printer connections on all the computers stopped working. I have so far been able to get the G4 Power PC to print, but none of the others. I have tried Bonjour, Gimp-print v.5.0.0-beta 2, cleared all the print drivers and restarted, and everything else I have been able to find on both Epson and Apple sites. The Printer Set Utility described by Epson does not exist in Leopard machines, and doesn't work for the older laptops. As soon as I select one of the printers in the "selected printer in print dialogue box" it grays out. I have set up sharing on the G4Power PC that does print, but it is not accessible--it shows up but is grayed out. There is a diamond next to the printers in the Print dialogue box in applications' menus, but it still doesn't work. It either cannot make the connection, cannot find the printer, or keeps spinning with the message that it is finishing printing (but it hasn't even started.) Again, everything worked fine until the new iPhone was added to the mix. My old iPhone didn't cause any problems. This is really a problem. Any suggestions welcome.

  • Good Morning.  How do I delete directly from the iPhone, with out synching, movies and/or tvshows?

    Good Morning.  How do I delete directly from the iPhone, with out synching, movies and/or tvshows?

    I had the same problem with Iphone 5 iOS 8, none of the methods described above were successful.
    Finally, Iexplorer helped to solve my problem.
    http://iexplorer-support.macroplant.com/customer/portal/articles/1325738-how-to- delete-all-photos-from-an-iphone-or-ipad
    best regards,
    salad

Maybe you are looking for

  • I have an ipad 1 and an iphone 4s, how do I manage these in iTunes given that they are different ios versions (5 and 6)?

    My iPhone 4s is on iOS 6 and that is fine (with various known issues of course). My iPad is using iOS 5 and does not support iOS 6, and here lies the problem. iTunes suggests updates to my Apps, some of which become iOS 6 only making them unusable on

  • Force "in-memory" hash join ?

    Hi everyone, can somebody point out to me how to force oracle to allocate a certain amount of memory to a certain hash join ? I´m using an oracle 10g instance with automating memory management - I assume that setting the "pga_aggregate_target" higher

  • Button with HTML-Link

    Hi! I've to create buttons on a dynpro, which process the currently installed frontend mail client (zB. Notes, Outlook, etc.) and fill the recipients, subject and mail body dynamically at the end of "PROCESS AFTER INPUT". The application handling sho

  • Cannot silence calendar alert with multiple appointments

    I've noticed that I cannot silence a calendar alert if I have more than one appointment at the alert time.  This is not a problem if I only have a single appointment.  Has anyone else noticed this?  It's not new to this version of iOS.

  • Guitar Rig 3 - wah pedal not recording...

    Hi there How do I get Guitar Rig 3 to work so that when I use the Kontrol for wah, it picks it up? At present Logic is just recording the raw sound. Thanks! Steve