How can max memory be undefined ?

Im trying to monitor memory usage of my app. The memoryUsage class says that max memory can be undefined (see http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryUsage.htm), how can this be, isnt it always
-XMx (or 64MB) if not defined.

paultaylor wrote:
tschodt wrote:
You are thinking of a specific implementation of Java (the Sun implementation).Are then any implementations that actually use the physical memory availble as required ?The beautiful things is that it doesn't matter if there are actually any implementations that behave differently. The standard clearly defines what such a implementation should do and therefore it is legal. If you want to write code that works on all implementations you should probably handle that case as well.
Personally I use only the Sun JDK, the IBM JDK and the OpenJDK (IcedTea) and those three have a maximum at all time, as far as I know. But there are other implementations out there where I wouldn't be so sure.

Similar Messages

  • How can I check for 'undefined'?

    Hi,
    I am creating a custom MP3 player where audio playback is
    started by clicking on the title of the audio, but I also want to
    be able to start play abck from the Play/Pause button. In order to
    implement this dual approach, I am thinking of checking if a sound
    has been loaded (with 'mySound.loadSound("path to sound") already
    by the my titleButton.
    I am thinking of doing this by checking the
    'mySound.position' as that would be 'undefined' if there was no
    sound loaded.
    But how can I check it for being 'undefined', what woud be
    the syntax? Itexpects a number so I tried -1, but that didn't work.
    Or is there a better way?
    Thx,
    Nik
    have a Play/Pause button and for it in order to

    Found the answer.
    The code is of course:
    etc. //
    if (mySound.position == undefined) {
    // etc.
    I had a erroe else where.
    NIk

  • How to Determine Safe Max Memory Limit?

    From what I understand, the amount of memory available to your AIR game on a device will vary depending on how many other apps the user is running, the type of device, etc. 
    So with this in mind, how does one define a safe max memory limit for a given device? What percentage of a device's total RAM can we assume we have access to? 
    Here are the iOS RAM Specs
    iPod (4th Gen): 128Mb.
    iPad 1: 256 MB
    iPad 2, iPod Touch (5th Gen): 512 MB
    iPad3: 1 GB 
    I already have highly optimized texture atlases using PVRTC ATF for best use of memory, but if you've ever worked with a passionate creative department, you'll know they always want more. I need to be able to tell them exactly how many spritesheets they have to work with for a given device - how would I do this? 
    NOTE: iPhones/iPod Touches/iPads all have a Unified Memory Architecture which mean that both the CPU and GPU share system memory, which means there is no dedicated GPU GRAM on these devices. So the RAM listed above, I assume, is shared by both the game logic and the GPU.

    Update, I've found an Objective C post on Stack Overflow that answers this question
    Here are the (rough) max memory limits to expect before an out-of-memory crash will occur:
    iPad1: 127MB/256MB (crash amount/total amount)
    iPad2: 275MB/512MB
    iPad3: 645MB/1024MB
    iPhone4: 325MB/512MB
    Note that max memory limit will vary depending on how many apps a user is running, but these figures are a good rough guide. See the Stack Overflow post for more details.

  • I'm getting this error statement: XULRUNNER error: platform version 6.0.2 is not compatible with min etc max etc6.0.1 - what is this about and how can it be corrected?

    This is what I think may have happened. The other day, Thursday Sept 8th, I shut down my pc in the middle of a Firefox upgrade. Now when I try to access Firefox on my pc, I get this error message:
    XULRUNNER Error: Platform version '6.0.2 is not compatible with min Version >= 6.0.1 max Version < 6.0.1
    What is this about and how can I retsore access to Firefox on my pc?

    If you use ZoneAlarm Extreme Security then try to disable Virtualization.
    Do a clean reinstall and delete the Firefox program folder.
    * http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
    *[[/questions/869812]]
    *[[/questions/869951]]

  • I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?

    I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?
    Thanks!
    David

    Either of these should help.
    http://grandperspectiv.sourceforge.net/
    http://www.whatsizemac.com/
    Or search 'disk size' in the App Store.
    Be carefull with what you delete & have a backup BEFORE you start, you may also want to reboot to try to free any memory that may have been written to disk.

  • How can I use my Zen Xtra like a flash memory

    Hello, I want to know how can I use my MP3 player like a flash memory.
    I have one and if I conect it with other computers I can't transfer documents and with a flash memory I conect it in all the computers with Windows XP and all of they detect the flash memory and they can transfer documents.
    With my Zen Xtra I connect it and the computer detects it but I can't transfer anything because the computer doesn't have the software.
    My question is.. Do I have to install the software in all the computers that I use ? or there are other forms to conects PC and MP3 Player? ( I want to transfer documents like text, image, etc)

    But some MP3 players do that, why this one can't be connected with all the computers ?
    Message Edited by morfo on 0-22-2005 05:54 PM

  • Ive deleted contacts from my contacts list but they still pop up when i go to text and type in the name of a current contact. .  How can i delete them off my phones memory for good?

    Ive deleted contacts from my contacts list but they still pop up when i go to text and type in the name of a current contact. .  How can i delete them off my phones memory for good? iPhone 4S

    At the present time, the only way to clear that is to restore the phone as new.  Perhaps a future iOS update will give us the option to clear that cache.

  • How can i get the max rpm from cpu fan??

    how can i get the max rpm from my cpu cooler regarding that i don't have a speed controller attached to the cpu fan ,,, ??  please make things clear for me
    thanks

    if you have not reduced it by using a speed controller either hardware or software or by the 7v mod its already going as fast as it will at 12 v dc you cannot speed it up only slow it down
    need more air get a different cooler/fan

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • In my macbook pro 15 inch mid 2012 model, my cpu and gpu will get very hot, when gaming or rendering sometimes over 200F. The fans only spin at max about 2900 rpm, when their max is 6400. I downloaded a fan control app, but how can i fix it?

    In my macbook pro 15 inch mid 2012 model, my cpu and gpu will get very hot, when gaming or rendering sometimes over 200F. The fans only spin at max about 2900 rpm, when their max is 6400. I downloaded a fan control app, but how can i fix it?

    Hi rhaughan,
    I see that you have concerns about your operating temperature of your computer while using resource-heavy applications such as gaming applications. I have an article that will address some of the concerns you have mentioned:
    Mac notebooks: Operating temperature - Apple Support
    http://support.apple.com/en-is/HT201640
    While there are third-party utilities that measure the temperature of a notebook computer, it is important to understand that these utilities are not measuring the external case temperature. The actual case temperature is much lower. Never use third-party applications to diagnose possible hardware issues—instead, contact Apple or go to an Apple Retail Store or Apple Authorized Service Provider.
    You should also see this article for even further information about your fans:
    Learn about the fans in your Mac - Apple Support
    http://support.apple.com/en-is/HT202179
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • How can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card, how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card

    how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card????please help

    You can't. There is no memory card. It uses flash memory that's soldered to the logic board. If you didn't back it up, your data is gone.

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • HT1386 I use Windows Vista.I moved my itunes library from the vista hard drive to data hard drive because of low memory remaining on vista. I can no longer sync my ipod to my library.how can this be fixed. Willy

    I use windows vista. I moved my itunes library fromvista to data hard drive. Very little available memory on vista. I cannot sync my ipod to library anymore.
    how can I fix this problem. Willy.

    Go to Settings>Preferences>Advanced and make sure that the location of your media library is correct.

  • I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    Thank you KiltedTim!
    YES, that is the free 5GB icloud memory for each apple ID. Can I not add the free 5Gb of my second Iphone to my original apple ID (5GB also) as I want to use one Apple ID name on both 2 Iphones? Is it necessary to have a different apple ID for the second Iphone to avail the free 5GB it carries with it?

  • How can I upload my photos from my iPad to a memory stick I have an adapter that takes memory cards to download to iPad that has a USB socket but can't find anywhere on iPad to instruct it to do this?

    How can I upload my photos to a memory stick from my iPad

    You can't do it directly from your iPad, the camera connection kit only copies photos/videos to the iPad's Photos app, it can't be used to copy them off.
    You can copy photos to a computer and from there to the memory stick : Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC.

Maybe you are looking for

  • Adding iPad3 with Jabber Client as a device in CUCM 8.6

    I posted this in the wrong category. We have CUCM 8.6 installed in house and I have successfully connected iPhone and Droid phones, however I have been unable to get my iPad3 configured as an endpoint. I have the most recent Jabber for iPad installed

  • HOW can I get a STATUS OF TRIGGERs  TO FIRE CORRECTLY ???

    Hi all, I had trouble with a migrated DB (7.3.4 -> 9.2.04) why all important TRIGGER did not fire (Business Rules). I could see all TRIGGERS WAS VALID with: SELECT a.object_name FROM all_objects a WHERE a.object_type = 'TRIGGER' AND a.status = 'INVAL

  • Error while running the Pacakge

    Hello All, I am getting the Error ORA-01652: unable to extend temp segment by 16 in tablespace TEMP could you please let me know In what cases we get error and what is the resolution. what is the number 16 stands for . Please let me know. Kind Regard

  • Hyperlinks Missing in PDF

    I have successfully added the hyperlinks in Indesign File thru scripting. But when i made the indd file to ps then i converted ps to PDf using Acrobat distiller 8.0. Hyperlinks are not working. Indesign CS2 scripting: VB.net Please suggest. Regards,

  • What is the easiest way to sync Google Cal and Contacts with an iMac?

    iTunes will sync Google Contacts, but not calendar. Weird. Why? What's the best fix?