Incrementing the Xmx option to launch a JVM

I'm developing an application launcher (creating an exe using JNI from C++) to launch a Java application. As it is a memory extensive app I need to have 1G of maximum heap space. I'm setting the JavaVMOption -Xmx1024M but is going to fail to allocate that much memory.
I'm using the solution proposed in [http://forum.java.sun.com/thread.jspa?threadID=5220601|http://forum.java.sun.com/thread.jspa?threadID=5220601] and it will give me 866M as result (that won't work either unless I increment the MaxPerm to 100 instead of 64).
The question is mainly: how can I increment the heap space allocated for the application to 1024M since it works from calling java -Xmx1024M from command line?
I'm using a Windows environment with 2G in RAM.
Thanks

Two thoughts.
First as the referenced thread in the last response indicates the VM will only allocate as much contigous space as available. That suggests your application is starting in the middle of the addressable memory. I believe that is adjustable as a link parameter.
Second the Sun source code is available so you could get a copy of that and see how they launch the VM. You might even check the license because at least some of that should be public domain now so if it is the correct part you could just use that directly.

Similar Messages

  • How I can set the Non-standard option of -Xmxn of jvm

    Hi there,
    Can any one tell me how I can set the Non-standard option of -Xmxn of jvm (setp by step).Iam using Sun's jvm(jdk1.2.2).Iam facing a error(java.lang .OutOfMemory).I want to set the maximum size of the memory allocation pool.Any help will be highly appreciated.
    Thanks for ur valuable Time
    Bikash

    you can use the following sample options to specify memory size.
    EX:java -Xms128mb -Xmx512mb myClassFile

  • Apps quit unexpectedly on launch and I've already try the troubleshooting options

    Apps quit unexpectedly on launch and I've already try the troubleshooting options available on adobe.  It still don't work !

    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How to remove the automatic option of saving in iCloud?

    Is there a way to change the automatic option of saving to iCloud when saving new documents in most of the applications in osx lion? Example: launch pages. Immediately a screen pops up that shows finder or the option to create new doc. (I also dislike this feature; would love to go back to launching pages and a blank page coming up or nothing happening at all, leaving me the option to do whatever I want rather than be told wha tthe options are). Create new doc. Then try to save. Then it tries to automatically save to iCloud. After having to click on a few places, I get where I want  I be. Unneeded work. How can I change options, to go back to how things used to be?
    Thanks

    To prevent saving in iCloud, go to System Preference/iCloud and uncheck the Documents & Data box. Now if you start any OS X app like TextEdit, it won't show that iCloud Dialog.

  • I cant copy photo's out of iPhoto, I select them all but if I want to paste them for example to my nas or a folder on my macbook, the paste option wont appear. I tried with export, didnt work either. It used to work, but now all of a sudden it wont.

    I cant copy photos out of iphoto (event), I can copy them but if I want to paste them in another folder on my macbook or nas hdd, I dont have the option "paste" If I select some of the pic's it sometimes works.I also tried with export them but didnt work either.
    I used to load them into iphoto manged them and then simly copied them and saved them on my nas and/or my macbook's hdd in a folder, but now it wont work. I have now thousents of photo i cant copy, its a mess....
    it might be a problem with an update as I had also a mess with my music after updating to the latest itunes.
    has anybody an idea how to fix this??

    That warning sign comes up when iPhoto has broken the link/file path to the original photos.  Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • The preview option in FCK doesn't work when using trought an external app!

    Hello everyone!
    I have an issue with the FCK-editor when using in an external application.
    We are executing the “WCM_EDIT_DATA_FILE” service to launch the FCK contributor application in a portal (Webcenter) so we can edit datafiles. The preview option (preview butto) does not apply a region template and the content is shown in the same order as defined in the region definition. Viewing the same datafile trough Site Studio I can see that the preview option applies a region template.
    I've compared the links but I am not getting anywhere.....
    The links for the preview are:
    Via the portal:
    http://MyServer/vcc/idcplg?IdcService=SS_QD_GET_RENDITION&coreContentOnly=1&dDocName=DF_NEWS_BERLIN_8&dID=765&wcm.contributor.mode=false&IgnoreContributorOnly=true&previewId=1276003853183&WCMPopupId=POPUP09875462424653607178
    Via Site Studio:
    http://Myserver/VCCPOC/index.htm?wcm.contributor.mode=false&IgnoreContributorOnly=true&previewId=1275983448108&WCMPopupId=POPUP07808631203986127290
    I can see that the portal link has the same parameters as the Site Studio link and some more. I even tried adding a region template in the url by adding my template as a parameter like this "&templateDocName=RT_BOUND_DETAIL_VIEW" just to force it but without any luck. The same goes for the "view differences"-button in the FCK editor.
    Has anyone had this problem?
    Thanks

    Hi Stijn,
    Here is the link to the SS-services:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e10615/c11_ss_services.htm#insertedID0
    And here is the link to the CS-services:
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/services_reference_10gr3en.pdf
    The name of the service that creates new data file is CHECKIN_NEW_FORM.
    Saving the file from the FCKEditor makes the browser window "greyed out" so for the time being we are hitting the "go back"-button in the browser to return to the portal... as we open the editor in the same window as the portal. However, there must be another solution as this is fare away from user friendly!
    Let me try to answer some of your questions:
    - Are you also using the Site Studio publishing functionality (we will not)
    No, we are not either.
    - where will your site design be done (we'll try to do as much as we can in WebCenter to keep it all in one place; we might even just output XML with our templates from SS, and transform it in WebCenter using different "templates")
    We are also planning to have it all in WebCenter. We are using SS for creating region templates and subtempalates used in the portal (Webcenter/ADF) for showing the same data files in different ways. That means that we also have elements, region definitions, placeholders and so on in the SS.
    - what are you doing with inline images in the FCKEditor (we want contributors to be able to upload there images easily from the Editor, without the need to browse to UCM)
    Well, for the time being the contributor must browse the some images from the CS because the images must have a certain height and width... so that is our way of controlling that the user is choosing from the approved images. When it comes to images in the text the contributors can add as many images as they want that are not from the CS. They can just copy/paste them in the editor from whatever location they want.
    - is it correct that the metadata tab cannot be used in combination with profiles defined in UCM (see other thread WebCenter Content
    I've heard that before so my guess is that it's true. My question then is how do I do to hide the metadata tab if I do not use it?
    - will you be using the ctrl-shift-F5 functionality to edit content, or just create a link to the WCM_EDIT_... service in a popup window?
    We create a link to the WCM_EDIT_... service that opens in the same window as the portal.... but as I mentioned earlier that is not the most user friendly solution so we probably must change that....
    Now back to my problems:
    I know why the preview trough the portal and the site studio differs.
    The services that are used when previewing content trought the SS are:
    SS_SET_PREVIEW_ELEMENT_DATA
    SS_GET_PAGE
    LOAD_DOC_ENVIRONMENT
    The services that are used when previewing content trought the portal are:
    SS_SET_PREVIEW_ELEMENT_DATA
    SS_QD_GET_RENDITION
    LOAD_DOC_ENVIRONMENT
    The SS_GET_PAGE actually shows a page in SS and as soon as there is a region template attached to the page you are able to see the content the way you want. That is not the case then calling the SS_QD_GET_RENDITION service. So my question is if there is a workaround where I can force a region template to be used con conjunction with the SS_QD_GET_RENDITION service?
    Anyone? All ideas are really appreciated!

  • I created a playlist with 100 songs.  I want those 100 songs played using the shuffle option.  This no longer works in iTunes version 11.1.5.5  How can I get an entire  playlist to paly one song after another by using the switch option?

    I created a playlist with 100 songs.  I want those 100 songs played using the shuffle option.  This no longer works in iTunes version 11.1.5.5  How can I get an entire  playlist to paly one song after another by using the switch option?

    You're welcome.
    Going back to your original post:
    5) Tried running Itunes in 'safe mode', running itunes as an administrator..nothing.
    Was that iTunes' safe mode as opposed to Windows' safe mode? iTunes safe mode is invoked by holding down CTRL+SHIFT immediately after clicking the icon to launch iTunes and continuing to hold until this message pops up:
    Click continue, then close iTunes and reopen. With luck iTunes now opens normally every time.
    tt2

  • AT&T has rules for the iPhone 3G S launch - Lines allowed to form starting at 7am

    AT&T has rules for iPhone 3G S launch - Lines allowed to form starting at 7am
    Perhaps AT&T has learned some from the troubles with iPhone past launches and they are going to try to make the experience better by settings some rules this time around. While AT&T is calling these “rules” guidelines, we think it really is nothing more than an effort to make a success of what the company hopes is one of the biggest tech event launches of the year.
    AT&T stores will receive inventory in time for the actual launch on June 19th. AT&T is already accepting pre-orders online as well as in stores. This change is key this time around because those that choose not to place a pre-order could be left out in the cold. From our understanding, pre-order customers will be given priority.
    The way that it will work is when the AT&T store opens, customers in line will then be split into two lines, with those already having a pre-order placed in one line and those who don’t have a pre-order placed in the other line. Pre-order customers will be able to start receiving their new iPhone 3G S starting shortly after 7 A.M., while those without a pre-order will have to wait until the store’s official regular opening time. Upon the actual regular opening time of the store, the two lines will then be merged into one line again. Apple retail stores will also be an option as they will open at 8 A.M. on launch day, but only those that pre-order from the Apple retail store will actually be able to pick up their phones early.
    As for the pricing, current AT&T customers that have had a contract with AT&T for at least 18 months will be able to get the new 16GB model for $199 or a 32GB model for $299. If you happen to be a current AT&T iPhone owner, but have not gone 18 months on your current contract, you will be able to pick up a new iPhone 3G S but will have to pay between $399 to $599, depending on how much time is left on your current contract and whether you want the 16GB or 32GB model. From what we understand, you will have to agree to another 2-year contract to get the iPhone 3G S this time around.
    The only actual possible loophole in this deal is to cancel your current AT&T contract and pay the $175 early termination fee and then wait three months. After the three months have lapsed, you can return to AT&T and then get new customer pricing, which would save you $225, but you have to endure a three-month wait.
    While the pricing and the options might make some AT&T customers unhappy, it is what it is. The bottom line is that the iPhone is still so hot, AT&T knows that people will pay what it takes to sport the new version if they are a big iPhone fan. According to our sources, AT&T should have enough inventory to more than cover the pre-orders, but beyond the pre-orders it is difficult to say if they will be able to meet the demand on launch day for additional units. Our advice is that if you want to have one on launch day, you had better get your pre-order in soon.
    Source:
    http://www.fudzilla.com/content/view/14181/1/

    I believe if you are a current AT&T Customer and wish to ADD a new phone to your account you will be able to get the new 16GB model for $199 or a 32GB model for $299. I went through
    http://www.apple.com/iphone/buy/
    and selected "Add a new line to my existing account" and was shown pricing as $199 for 16 GB and $299 for 32 GB.
    Hard to see this as any benefit unless you need an additional line on an existing account, which I happen to (I bought a new "additional line" 3G just before the 3GS was announced, and will fit into the "return" window)

  • I had to re-install XP on my laptop. I installed itunes. Now I want to restore my music from backup CD's. But the option device under file is greyed out. I can't select restore from backup. How do I make the restore option active. I have an ipod nano

    I had to re-install XP on my laptop. I then installed itunes again. Now I want to restore my music from backup CD's. But the option device under file is greyed out. I can't select restore from backup. How do I make the restore option active? i have an IPOD nano.

    I think it's QuickTime player causing the problem, when I try to open it I get the windows error that an error has occured
    Let's try swapping out your QuickTime again, taking a few extra explicit precautions this time.
    Head into your Add/Remove programs. uninstall QuickTime.
    Next, we’ll manually remove any leftover program files and folders.
    1. On the Start menu, click My Computer (or double-click My Computer on the Desktop).
    2. In My Computer, open Local Disk.
    3. Open Program Files.
    4. Right-click on the QuickTime folder and click Delete from the shortcut menu.
    5. Navigate to C:\Windows\system32\.
    6. Remove the files QuickTime.qts and QuicktimeVR.qtx. (If “Hide filename extensions for known file types” is enabled on the PC, then those two files will appear as “QuickTime” and QuickTimeVR”.)
    7. Restart your computer.
    Now download and save a copy of the latest standalone QuickTime installer to your hard drive. (We'll run the install from there rather than online.)
    Latest Quicktime Installers … get the one that doesn’t mention iTunes
    Switch off antivirus and antispyware applications prior to the install. Start the install by doubleclicking the QuickTimeInstaller.exe.
    If that install goes through okay, restart the PC and try launching iTunes again. Does your iTunes launch properly now?
    (If you get an error message on the QuickTime uninstall or standalone reinstall, let us know what it says. Include error message numbers if you're getting any.)

  • I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    I see that many people have already complained about Itunes' backup encryption. I NEVER set a password for it (and the corresponding option is still unticked, as always) yet it asked me for a pwd when I upgraded my 3GS to the 5.0 OS. How to solve this?

    To prevent others from reading your mail, don't give them access to your account. If others need to use your computer for some reason, set up personal accounts, or a guest account, and switch to it before allowing them access. This is the simplest, and most effective, method.
    Email message files can be read as plain text in TextEdit or any word processor.
    To protect your email messages from being viewed by others while in your account, you would have to lock the folder, putting it into an encrypted disk image that required a password to be opened and mounted. You would have to double-click on the image and give your password to mount it before launching Mail then unmount it as soon as you're done. My guess is that you could replace the ~/Library/Mail folder with an alias pointing to the folder on the disk image.
    It may work, but it seems like a lot of unnecessary hassle.

  • "system cannot find the file specified" when launching a java app

    Hi,
    we are receiving an error message saying "The system cannot find the file specified" when launching a java app on a server. Exactly the same configuration on another server does not give the same problem.
    The dialog box with the error message only presents one button - OK - and after pressing the button the app continues to run normally. This however is a big problem for us as we are trying to convert the apps into system services using the wrapper (http://wrapper.tanukisoftware.org).
    Note: the problem exibits itself with and without the use of the wrapper.
    I am not very comfortable about reinstalling the JRE on a production server. Is there any way to see what file it is missing? Debug options or something similar?
    The JRE in question is 1.4.2_06. Many thanks in advance for your answers.

    if not setting Post-Processing option results in a cryptic error why doesn't Adobe do one of at least three things?
    1. Don't let user click Export on Export dialog if nothing's selected for Post-Processing.
    2. Default Post-Processing to Do Nothing
    3. Give the user a hint as to what the problem is when the error occurs instead of issuing cryptic error message.
    Allowing this error to persist for so long is ridiculous.

  • Macbook pro freezes when I perform a soft reset. The only option is for me to hard restart it to get it working again.

    Hey everyone, I've been searching for quite awhile for an answer to this issue, and I haven't found it - so I figured I would post a question about it. To give some details, whenever I soft restart my Macbook Pro (By resetting it through the "restart" option at the top left) it will shut down to a gray screen and just sit there forever. The only thing I can do, as far as I know, is a hard restart - by holding down the power button and shutting it down - I know this isn't good for it, but again, it's about the only option I've got.
    I've tried to verify/repair my disk permissions, and that hasn't helped.
    I've also not installed any software since before that started happening. I'm also using OS 10.8.2 - I don't remember what was installed prior to that though - but it's an early 2011 model...the problem actually started happening well before I updated to Mountain Lion, and it's still happening now.
    Thanks!

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged before the boot, while the system was unresponsive or was failing to shut down. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message. Please include the BOOT_TIME message at the end of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • My iTunes wont sync my selected songs onto my iPhone 4, it does nothing. The only option that works is sync all music.

    Hi all. I've been having this issue for some time now. You see, I want to sync all my SELECTED music from my itunes library onto my iPhone 4, however whent he approriate options are ticked, and I click sync, nothing happens. The only option that seems to put music across is to sync my entire library (which I don't want) can anyone help?

    In iTunes there is a setting to automatically launch iTunes when the phone is connected.
    http://osxdaily.com/2010/05/06/stop-itunes-from-automatically-opening-when-iphon eipod-is-connected/
    You could just make sure the option that they talk about in this article is checked.

  • I've read two solutions to my problem and neither worked. I can't get the repeat option to show in some events, though it does appear in others.

    I can't get the "repeat" option to show in some events, though it does appear in others. How can i get it to show when I need it? (I read two "soluntions" that supposedly worked, but neither worked for me.)

    Greetings,
    I can't say I've seen that behavior before.  I' be curious to see a screen shot of it in the edit mode where you edit the fields.
    Beyond that I'll offer generic troubleshooting steps:
    Go to Apple Menu > System Preferences > Language & Text > Formats > Region. Region should be set to the country of your choice. Do not have it set to "Custom" as this can have unexpected results in the iCal window.
    If that doesn't resolve the issue:
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Go to iCal > Quit iCal
    3. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    --- NOTE: To get to "Home > Library" in Lion: Click anywhere on the desktop and then click on the "Go" menu at the top of the computer screen while holding down the "option" key on the keyboard.  You will see "Library" in the menu.
    4. Launch iCal and test.
    If the issue persists:
    1. Go to iCal > Quit iCal
    2. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    --- NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    3. Launch iCal and test.
    Hope that helps!

  • NEW FEATURE IN OLM - Provide option to launch learning object in new window

    NEW FEATURE IN OLM - Provide option to launch a learning object in a new window from the player
    Background:
    When content is launched from Oracle Learning Management, it is presented within the Oracle Learning Management player frameset. If the content is not on the same server as Oracle Learning Management, this can cause issues with content that is not "frame-friendly". In order to work around this issue in the past, customers either needed to modify their content to be frame-friendly, or create a "splash" page to load in the Oracle Learning Management player, which in turn would open a new window displaying the content. This also caused integration compatibility issues with Oracle Collaboration Suite 10g Web Conferencing.
    Feature:
    This new feature eliminates the need to utilize a splash page or modify content that is not frame-friendly, as it allows you to safely open the content in a separate window from the Oracle Learning Management player, while maintaining all tracking capabilities.
    The new Open in New Window check box is provided on the learning object properties page.
    When the learner launches a learning object where this check box is checked, the player opens as normal and presents a "splash" page with some instructional text. This splash page then opens a new window for the content.
    The splash page also checks for the presence of a pop-up blocker that may block the new window from opening. If this occurs, the learner receives an alert indicating that a pop-up blocker has prevented the content window from opening.
    Action/Notes:
    By default, the Open in New Window check box is NOT selected for any learning object, whether created before or after the patch is applied. Therefore, if you do not plan to use this feature, no action is necessary.
    For those customers who do want to take advantage of this feature, you must edit your learning objects individually and select the Open in New Window check box on the learning object properties page.
    This new feature is independent of the Open in New Window check box in the player preferences section of the offering properties page, which opens the player in a separate window. If both check boxes are selected, the Oracle Learning Management player opens in a separate window, then the content opens in another separate window.
    Availability:
    * Installed or OnDemand Customers -- This patch is available now via Metalink. Patch # 5943165
    Enjoy!
    The Oracle Learning Product Management Team

    Please,
    I need help, I don´t know why the next message display "cannot display the page", just some seconds, after display the course.
    Do you know why??, is some problem configuration or connection??

Maybe you are looking for