Newbie Question: Java -Xmx and other settings...

Hi all I have a simple question,
I know that you can use the -Xms and -Xmx to set the heap size, but when I run this command is it permanent or do I have to set it each time I boot up my Windows system? How do tell what the current heap size is?
I would be grateful for any help.
Thanks!

My dear Friend,
if you are running your program with
java -Xmx 1024 -Xms 500 ....
This values you are using are like jvm arguments and you have to provide them everytime you are running your program.....
Regards,

Similar Messages

  • Java xmx and xms

    Hi All,
    I want to know what xmx and xms settings are given at the time of java is launched, in the java code.
    Runtime.getFreeMemory gives size of current free heap size. I am not intrested in such calls.
    java -Xmx 512 -Xms 256 Test
    In test.java I need some code which prints values of mx and ms.
    thanks
    renjith.

    Check this out..
    [http://forums.sun.com/thread.jspa?threadID=705258&messageID=4087905#4087905|http://forums.sun.com/thread.jspa?threadID=705258&messageID=4087905#4087905]
    And look! whos made the last post there?
    ;-)

  • How do I transfer my MacBook Air to my wife so she can sync her iTunes account and other settings with her iPad Mini?

    How do I transfer my MacBook Air to my wife so she can sync her iTunes account and other settings with her iPad Mini?

    You can change the account shortname to whatever you wish to use.
    As you can see from my example above. Once you click on the Create User button a new account will be created.
    She will need to get her own Apple ID setup so when she starts with iTunes she can open her own iTunes account unless you both want to share the use of the same Apple ID. This can create a bit of confusion if you have your own iPads or iPhones or iPods. As you have discovered it's pretty much one iDevice with one Apple ID.
    As for the iTunes library that becomes a more complicated issue.

  • HT4085 Did all these things mentioned in this article, even did a system reset including data and other settings. iOS is up to date, still the iPad 2 display is not rotating.

    Did all these things mentioned in this article, even did a system reset including erase data and other settings. iOS is up to date, still the iPad 2 display is not rotating.
    This happened first a couple of weeks before, then I did a reset and it worked. Then after 2-3 days it happened again, I updated the iOS and it worked after that. Next time it happened, I tried all possible methods, including switching to software - rotation lock on/off. The hardware when turns to off/on, shows the correct icon on the screen of the lock and unlocked state. But the rotation is not happening.

    Just check again.
    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that doesn't do it, double tap the home button and swipe to the right and look for the lock icon all the way to the left.
    If the screen is unlocked but still will not rotate, reset the iPad.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If the iPad screen still will not rotate - turn it over and gently tap it on the back a couple of times - but gently tap it. Make sure that the screen is protected.

  • HT1212 Hi, I am unable to reset all settings.. I don't remember the pass code.. I am able to reset network settings and other settings. Can someone please gelp

    Hi, I am unable to reset all settings.. I don't remember the pass code.. I am able to reset network settings and other settings. Can someone please help

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad into Recovery Mode
    http://support.apple.com/kb/ht1808

  • Just installed iOS6, questions about "iMessage" and other things...

    I've been a satisfied iOS4 user since I bought my iPhone4, but I was forced to install iOS6 tonight in order to download a "free" app. I found a few new icons on the screen along with about 200 percent more "Settings" I'd like to ask some questions about. I'm sure a few of these could be answered by doing a frantic and thorough search through weeks of posts but I'm a little short on time right now.
    First, what exactly is iMessage? Looking at the page for it, I can't see any difference between it and regular text messages. The info page says its to avoid charges, but between my data plan and not being charged for text I don't see where theres any other benefit. The one person I text with the most recently asked me why I had not installed iMessage yet, and didn't have an answer when I asked him why I should. I guess he just wanted to see text replies in blue instead of green.
    In a related bit, flipping through Settings>Messages>Send & Receive I find a "2 addresses" section, with my phone number in there as well as my email under "You can be reached by iMessage at:" and "Start new conversations from:". What good does it do iMessages to have my email address? Does the Mail app handle text as well as email addresses? That seems to be the only explanation, and also very odd to think I'd be trying to text through my Mail app.
    Second, looking through the Settings>Mail I see now that I have an icloud email address as well as the mac.com address I've been desperately hanging on to for the past 10 years, and the me.com address they've been trying to force me into since those came out. (I was happy to see I could delete the me.com address from the phone. I wish I could delete it from the universe.)
    I wasn't even aware there was a such thing as icloud.com addresses. When did this happen? What is it used for?
    Third, under that icloud Setting I see a long list of apps with buttons labeled "Off" under it. What are those for? Under the Mac.com settings I see switches for "Mail" and "Notes", with Mail on and Notes off. The Notes app (which I haven't used since my old iPhone 3) still opens, regardless of this setting.
    Fourth, I now have an item called "Facetime" under my Settings. It is off, but underneath it says "Your phone number and/or email address will be shared with people you call". I understand caller ID normally sends caller number info to the receiver, but why would someone need my email address if I call them?
    Fifth, I now have a "Music" setting, at the bottom of which I see a "Home Sharing" item, which when clicked brings up my AppleID and asks me if I want to Sign Out or Cancel. What is Home Sharing? Its also at the bottom of the "Video" settings.
    Sixth, now I have Twitter and Facebook settings? For what? I don't have accounts with either of those companies. So why have settings, especially since it asks me to create accounts and download apps for those companies right in the Settings?
    Seventh, there is a camera icon on the unlock screen. Touching it causes the screen to bounce up about a quarter inch, almost but not quite revealing something behind it. I should probably just quit asking about this stuff already, but I'll take the bait - what is this now?
    Finally, what is the Notification Center used for?
    If I got a text under iOS4, it would put an alert on the Unlock screen. Scrolling through this huge list of things under the Notification settings I'm really blown away by all the apps set up to yell at me. I can see having an alert for a text message but Game Center? What the heck is that, and why is it set up to hit me with a "Badge App Icon" (whatever that is) when I get alerts from "Everyone". Similarly, the phone is set to alert me to something called a "Photostream Alert"? What is this? Why is there a Phone section for the Notification Center? So they can put a Notice on my screen to tell me the phone is ringing? Holy cow! The phone is set to send me alerts from the "Weather Widget". So if I miss the fact its raining there will be a message on my screen to let me know? Whats next - a buzzer to tell me I'm listening to music?
    There's a lot more, like what would I need Passbook for when I have the actual movie tickets, gate boarding passes, coupons, etc in my hands, but we'll leave that for another time. Many thanks to all who can offer some answers to my questions above.

    Hey Taantumus!
    Here is an article that will provide some guidance on this question:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    The next time you use an Apple feature or service that uses Apple ID, you'll be asked to sign in with your new Apple ID password.
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Few basic questions about sharing and other stuff..

    Hi there!
    First of all I know where are "101" pages, but they are not giving detail information.
    1.I know there are some folders where I can put files, web-sites and other in order to enable sharing.
    What do I have to do to enable other users (from internet to)
    - view my webpage when they enter my IP address in browser
    - to access files which I want them to be able to acces (with user and password required)? I know there is sth like sharing, and windows sharing, but I give access to my all user folder, do I have to create new accounts on my mac?
    2. It's kind of small problem, but can I run apps in finder using only keyboard (enter causes rename action)
    3. Why doesn't safari keep addresses I used in addres field after few days?
    The most important question is 1.
    Will be gratefull for help.
    Thanks
    Adam Mscisz

    1. Start Personal Web Sharing from the Sharing pane of System Preferences; if you have a router between your computer and the Internet, ports 80 and 443 need to be forwarded to your computer. You can set this up from the router's configuration page, which is accessible by finding the router address in the Network pane of System Preferences and putting it into a web browser. See this article for instructions on how to password protect your shared files.
    2. You can use the Command and O keyboard shortcut to open the selected item in the Finder.
    3. The default setting in Safari is to keep the history for 7 days. You can use the method posted by ptejad in this article to extend the time Safari remembers the history for. The method at the top of the linked page won't work in Tiger.
    (14218)

  • How do I save or backup Firefox benchmarks and other settings?

    I will be upgrading my computer from Windows XP to Windows 7. I need to backup or save my Firefox internet benchmarks, passwords and other setting to a flash drive so that they can be reloaded to Windows 7. How best to go about doing this?

    I suggest also saving a copy of your entire user folder under
    c:\Documents and Settings\''username''\
    (But you can empty your Temp files and IE cache first; you won't need those.)
    I should note that it's a huge amount of data because it also contains the My Documents folder, but it's a good backup backup.

  • Strategy group and other settings

    Hi all,
    If you are getting
    1. Custormer requirements for new product(in-house prod)
    2. Requirements from Project system for new product (in-house prod)
    and you may sell the same developed product over the counter lateron. Then what strategy or strategy group and other necessary settings would be needed for the new material.
    Thanks
    Shiva

    Hi,
    If you are producing against your customer reqmt, you can use the planning strategy as 20. Later you would like to sell this in your counter u can use planning strategy 10 and 40 also. In SAP the same material can be assigned up to 6 planning strategy. Based on the requirement class it will behave according to the planning strategy.
    Regards,
    V. Suresh

  • How do you setup for your multi cores and other settings?

    since the preferences doesnt really give us a option does that mean that FCPX just "knows" how good your computer is and what you want to devote (memory wise, etc) to it?

    I have the same problem - beach balls and temporary freezing, on 2 Mac Pros (8 Core, 32GB RAM, HD5870 card). All the while CPU and other resources are not maxed out; this is on 10.6.8. there seems to be 'some' bugs - for some people - that in fact make FCPS quite slow (and slowing hte system down as well) all the while there is no bottleneck in hardware....  

  • If I instal Lion, will I lose M.Office and other settings?

    My iMac is running on Snow Leopard 10.6.8 and I am considering installing the latest OS Lion. However, I have Microsoft Office, iWork and other programs installed in my computer that I didn't want to lose. I also have a configuration for VPN access for the company I work for which would be very complicated to get that configuration installed again.
    Does anyone think that by installing Lion I would lose all that?
    I appreciate your coments!
    Thanks!

    Lion might muck with your VPN. Absent details, I can't say for sure. It most likely will have no effect.
    A Lion upgrade won't change or cause you to lose any of your software or data. Of course, anything might happen and so you should create a full bootable backup before upgrading, just in case.
    You do need to check if any of the software you are using requires Rosetta, which is the PowerPC emulation code used to run older software designed for pre-Intel Macs. If you're using MS Office 2011 and a recent vintage of iWork, both will work fine under Lion. Be sure to update your software before upgrading your OS, and investigate compatibility with Lion so you'll know in advance what will and won't work.

  • Question regarding Airport and DHCP settings

    I currently had a Dlink 624 router that just died. I need to get a new wifi router and was looking at the airport extreme base station...
    the question I have is with Dlink my dhcp is set to send out 192.168.0.xxx to my network. The apple is 10.0.0.xxx I believe. Can you change the airport extreme base station to 192.168.0.1? and serve 192.168.0.xxx across the network? The issue I have is I have other wifi devices that are already preset to accept the 192.168.0.xxx.

    AirPort Extreme Base Station Setup (AEBS) w/High-Speed Cable Modem
    Modem/Router Power ReCycling
    - Power-off the Cable modem, AEBS, & computer(s). (If possible, leave the modem off overnight.)
    - Power-on the Cable modem; Wait at least 30 minutes.
    - Power-on the AEBS; Wait at least 5 minutes.
    - Power-on the computer(s)
    Perform a "hard" reset of the AEBS.
    - (ref: http://docs.info.apple.com/article.html?artnum=107451)
    Setup the AEBS
    With the network components powered down, set up the AEBS, using the AirPort Admin Utility, connect your computer directly (using an Ethernet cable) to the LAN port of the AEBS, and then, try these settings:
    AirPort tab
    - Base Station Name: <whatever you wish or use the default>
    - AirPort Network Name: <whatever you wish or use the default>
    - Create a closed network (unchecked)
    - Wireless Security: Not enabled
    - Channel: Automatic
    - Mode: 802.11b/g Compatible
    Internet tab
    - Connect Using: Ethernet
    - Configure: Using DHCP
    - WAN Ethernet Port: Automatic
    Network tab
    - Distribute IP addresses (checked)
    - Share a single IP address (using DHCP & NAT) (enabled)
    - Use 192.168.0.1 addressing

  • Newbie questions on fms and actionscript 3

    Ok, like I said I'm a newbie, but I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
    1)  What is the advantage of writing a SSAS file over an external AS3 file?
    2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
    3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
    I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
    Thanks for any help you might have...

    1) I did not get this question correcly - for that matter SSAS can only be in AS1 - so i dont see reason comparing them
    2) It has to be AS1
    3) if you doing "include" stuff - i think code would go into compiled swf and proper decompiler would give you the code.
    Last para - Server-side engine understands only AS1 so it wont be able to read and understand your AS3 file.

  • A few questions about Canvas and other Image related stuff.

    I am just starting to play around with Canvas in the hopes of using it to make a little game (not an applet) in my spare time. I have gotten a ball to bounce around the screen and switch colors when it bounces without too much work. (hooray for me!).
    I was wondering:
    1) If you always have to repaint the whole area of the canvas, or can you repaint sections of the screen?
    2) Can there only be one canvas per frame, or if you can have more, like say, one for each sprite (I tried in my own simplistic way but the second canvas overrode the first when I added it to the frame) or do you have to lay out all the sprites in one canvas every time before you paint?
    3) Is Canvas the best platform for rendering my animations and doing collision detection, or are other ways of presenting the images better? By better I mean lower usage of resources, higher speed, accessibility of events that occur. (I have read in the mindprod java glossary "[Canvas] receives all the raw mousing events. Panels, in contrast, see only a few.")
    4) In a call to paint which tells it to display some images which are much larger than the frame the canvas is in, is time and effort spent working on those pixels that aren't displayed or does it take about the same amount of resources as for images that fit in the frame since the same amount of picture is actually displayed?
    5) Is there any convenient way to layers with canvas besides just controlling the order in which the images are painted. (I will admit I haven't searched for this information yet, because I just thought about it.)
    6) Is there any other information you guys would care to bestow on me?
    If any of this question is ridiculous, obvious, ignorant or any other negative adjective, then I apologize. I will continue messing around in the meantime.
    Thanks
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Okay, well I got it to work by drawing them both to the same canvas. duh I guess.
    Can you have more than one canvas in a frame? How do you set the size if so.
    How do I implement the z-order? I thought of doing it manually by sending the paint method a list of objects to paint and manually managing the order of that list. Would that be an acceptable way to do it?
    Should I only be trying to paint to one canvas? What I would like to do is have several canvases with transparent backgrounds so that I can draw different layers in the same frame. That way flying stuff would be painted on a different canvas than stuff on the ground, and then putting it all in a frame would tie the pictures together into a scene. Kind of like how they do distance in animation by having different layers of drawings on clear plastic that they can move at different speeds to give the illusion of depth.
    Any advise? Sorry for the douba-post
    Thanks
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Settings for capture excise invoice in MIGO and other settings

    Hi,
      For excise invoice capture and post procedure which we are following is as follow
    1 : For Local Excise invoice
         After receving goods from Vendor  first we are Doing J1IEX Part 1,  Capture excise invoice  after saving this we are getting part 1 number,  then we are making GR with MB01 ref. to part 1 number , then qyuality inspection then updating material in Unrestricted stock from quality  afetr that we are doing J1IEX  poat  PART 2  here we are getting part 2 number  then invoice verification,
    2 : For import PO
          First MIRO for custom delivery cost we are getting MIRO number,  then J1IEX part 1 ref. to MIRO number and year  then MB01, ref. to part 1 of J1IEX then quality quality to store then J1IEX Part 2 then MIRO for vendor.
    now in many thread i read about capture invoice in MIGO   so i want to know the detail settings which required to be made so that we can perform our ruoutin in short time.
    regards,
      zafar

    hi
    >is there will be any effect in our existing procedure We want to follow both for some time , after that we will do only in MIGO,
    yes u can use both simultniously
    but in MIGO if u capture,  the step of updation J1i5 will be ommited (it will take palce automatically)
    like currently ur doing capture >update >post
    in migo only capture and then post
    >second think is that now while posting the capture excise invoice in J1IEX we rae entering part 1 number, so can we do woth >this while capturing it thorugh migo or we have to post with vendor excise invoice number only.
    You can do capture and post simultaniously in migo only
    the separate transaction is given as persons or users  may be diffrent for GR and excise
    if the same user want to do the GR and cap and posting then yes he can
    for capture and posting u also have to tick Post Excise Invoice Captured in MIGO in excise grp settings
    regards
    kunal

Maybe you are looking for