Memory monitor exception

I am working on a mobile game using JSR-184 and WTK 2.2.0. When I try to run the program with the memory monitor enabled (on emulator) I always end up with the following exception:
Exception in thread "Thread-5" java.lang.RuntimeException: Inconsistent classes map
    at com.sun.kvem.memorymon.ObjectNode.free(Unknown Source)
    at com.sun.kvem.memorymon.ObjectsMonitor.freeObject(Unknown Source)
    at com.sun.kvem.memorymon.MemoryMonitor.freeObject(Unknown Source)
    at com.sun.kvem.memorymon.MemoryListener.run(Unknown Source)What can cause this? It appears to be thrown before the MIDlet constructor is called.
I'm using NetBeans 4.0 as the IDE, if that matters.
Thanks for your help,
Patrik

Which error do you get? java.lang.OutOfMemoryError: PermGen space? Or do you get your error from a different memory?
In case of PermGen: In my opinion threre is a bug (not yet accepted by sun/oracle) described here:
[ OOME because of MBeanServerConnection addListener    |http://forums.sun.com/thread.jspa?threadID=5407170&messageID=10814433#10814433]
If you are doing something similar, this could be the cause. Our workaround is to disconnect periodically.

Similar Messages

  • SYS-170111 - Cannot stop memory monitor thread: RWThreadImp::terminate -

    Hi Experts,
                  WE have this warning in pretty much every job in production. But the warnings are not specific to certain jobs they might occur one day and not the other day.
    Cannot stop memory monitor thread: <RWThreadImp::terminate - No thread is active within the runnable>.
    I know looking at the release notes this issue was fixed in 3.0 (12.0.0), we are using 3.2 (12.2.0) and having the same issues. The job server is on a linux 64 bit. I have not seen this issue in any of our windows job server. Is this bug specific to linux or is there a resolution for this.
    Appreciate your help in advance.
    Thanks
    AJ
    Edited by: alangilbi on Sep 28, 2011 5:17 PM

    Hi, AJ.
    As can be seen in the KBA 1455412 this is a known behavior.
    "As a result of fixing the problem identified in ADAPT 00890818 in release 12.0.0.0, this message is displayed by design. If there is really a problem in stopping the memory monitor thread an exception is thrown and an error message is logged.
    Background:
    In the memory monitor's shutdown logic, once it tells the monitor thread to shutdown it waits for the thread to terminate but only for 10 seconds. It could be that at this same time the wait expired when the thread actually terminates. So when this happens in the shutdown logic we force terminate the thread. Since there is no active thread anymore the terminate call throws an exception and then we catch it and then throws the error for the job."
    You can just ignore this warning.
    Leo.

  • How to use Memory Monitor on Sun ONE Studio 4 ??

    Hello,
    I am creating a midlet using the Nokia 7210 emulator. When trying to load a Canvas, an "Unable to run application" alert appears and the midlet quits.
    Presuming this is due to a memory problem, I've inserted a System.gc() call before I create the new canvas, but the midlet still exits.
    So to help me get to the bottom of it, I thought I had best try s1s4's Memory Monitor utlity - but I can't get it to work. I have ticked the 'Enable Memory Monitor' box on the Monitor tab of Preferences for the Installed Emulator (J2ME Wireless Toolkit 1.0.4_01), but nothing happens after the midlet runs and quits.
    Does anyone have any suggestions?
    Many thanks in advance,
    James

    I don't know. I've never tried.
    Look at the manual (7210midpSimGuide.pdf in the docs directory). Maybe there is something in there. In the command line options there are a bunch of tracing options that you can specify, like tracing allocations, garbage collections, stackmaps, etc.
    shmoove

  • WTK�s memory monitor is very slow

    Hello people! I was using the WTK�s(2.2) memory monitor and it�s woking well. But now, the momory monitor is too slow. Almost stopping the application (a simple game). I don�t understand, the system is the same! The code is the same! The computer is the same! Somebody can help me? Thanks!

    Run Etrecheck and post the results
    You backed up first and made a clone of your system?
    You used Recovery Mode and Disk Utility to repair the drive.
    Use to be we HAD TO clear system cache and extension caches before doing any type of install or upgrade.
    Maybe the report will show some possible explanation, incl. if the directory is healthy.

  • Memory monitor for Project Raptor

    I have earlier written a Memory monitor for JDeveloper 10.1.3 EA, where you can see the heap memory being consumed by the IDE.
    This works for raptor too due to its JDeveloper base.
    The extension was included in the JDeveloper Check for Updates.
    You can use the same extension for Raptor also.
    Option 1 : Use Check for updates by adding the following update center link:
    Update Center : http://myjavaserver.com/~rajvissa/center.xml
    Option 2: download the jar file and drop into ur < RAPTOR_HOME >/jdev/extensions folder
    Link: http://jroller.com/resources/r/rajvissa/memory.monitor.10.1.3.jar
    How it looks:
    Memory monitor for Project Raptor : http://www.jroller.com/page/rajvissa?catname=/JDeveloper
    Probably Raptor can add this to their update center like JDeveloper 10.1.3 EA.
    I tried this and found that raptor's memory consumption is < 70MB most of the time (I am not a DBA)

    Hi
    I installed it with option 2: option 1 did not work. I am unsure if it's my issue or general.
    Nice... I can control the amount of used memory!!
    Thanks,
    Andrea

  • ABAP debugger - Memory monitoring

    When in a debugging mode, go to menu --->
    Settings -> Memory monitoring (turn on this setting).
    However, since this feature is turned on, where do I get the result of the trace?

    Hi,
      You can check the results in the debugging mode itself,by clicking the "setting" button after the "overview" button.
    Go to table & give the internal table name & it will tell you the Memory Allocated & Memory used by the internal table.
    If you click on one of the lines of the internla table,it will give you the memory used by that particular line.

  • Memory monitoring in ABAP debugger

    Can anyone tell me the relevance of memory monitoring in ABAP debugger and and how to use it practically. I have searched the forums but did not find anything.

    Hi Sameer,
    If you choose the Settings pushbutton and select the Memory Monitoring radio button, or if you choose the menu Settings  ® Memory Monitoring, the system will inspect the roll area of the current mode after every ABAP statement. This allows you to check whether neighboring memory areas have been overwritten.
    The system checks of the memory segments  in order to find the memory overwrites for each executed statement. SAP uses this settings internally to find potential kernal bugs. Turning on this setting significantly decreases application performance.
    This internal setting is not relavent for ABAP developers.
    please check this link
    http://www.sappro.com/downloads/Settings&SystemAreas.pdf
    http://help.sap.com/saphelp_nw70/helpdata/en/c6/617d0ce68c11d2b2ab080009b43351/content.htm
    best regards,
    raam

  • Memory Monitor

    I am trying to instrument a large application to monitor for possible memory leaks in the current or future versions.
    I am using a similar approach to ...\Labview 8.2\Examples\memmon.llb\Memory Monitor.vi.  One problem is that the VI Server property VI.Metric.DataSize does not seem to be available if the VI is running (or waiting to run).  The property node returns error 1000, VI not is a .  Is there any other way to programmatically get detailed memory statistics for each VI?  Why is this information available in the profiler and in the VI Properties->Memory Usage window but not in a property node?
    It  would also be great to get a list of all active queues and notifiers on the system, but I suspect this is not available anywhere.  If anyone has good ideas about this, it would be great.
    Thanks,
    Jason Dunham

    Jason,
    Unfortunately, I am not aware of a way to do this programmatically.  As for the VI property Metrics:Total Data Size, according to the LabVIEW help, you cannot read this property if the VI is running.  Please see this post for the reasoning behind this.
    Regards,
    Craig D
    Applications Engineer
    National Instruments

  • Cannot stop memory monitor thread

    Hi All,
    I am getting the following error intermittently in a dataflow which has degree of parallelism = 8.
    22943 0 SYS-170111 27/11/2009 12:22:05 |SubDataflow DF_Conform_ISI_Person_Match_Prep_1_9
    22943 0 SYS-170111 27/11/2009 12:22:05 Cannot stop memory monitor thread: <RWThreadImp::terminate - No thread is active within the runnable>
    Any ideas as to the cause ?
    Thanks,
    Eric Jones.

    We are having the same issue.
    According to ADAPT00890818, this issue should be resolved in 12.0.0. We are currently running with version 12.2.2.3.
    Please advice.

  • WTK Memory Monitor, "Objects" view - how to interpret percentages?

    In the WTK Memory Monitor "Objects" view, a table of objects and memory sizes is shown. When clicking on an entry, a tree view is shown on the right hand side. Each item in the tree view has a percentage number next to it - how do I interpret this? Is it relative to the "Live", "Total" or "Total size" value of the corresponding object? More specifically, is it a count or size percentage?

    In the WTK Memory Monitor "Objects" view, a table of objects and memory sizes is shown. When clicking on an entry, a tree view is shown on the right hand side. Each item in the tree view has a percentage number next to it - how do I interpret this? Is it relative to the "Live", "Total" or "Total size" value of the corresponding object? More specifically, is it a count or size percentage?

  • Memory Monitor : Excessive GC

    Hey Folks,
    I was reading through the WTK docs on using the memory monitor, and it
    mentioned something about turning on excessive garbage collection, which causes
    GC to occur every time an Object is allocated. I can't figure out how to enable
    this functionality.
    Any thoughts?

    I have looked at "edit->preferences->select Monitor Tab" in WTK 2.1 and 2.2.
    I see "Enable Memory Monitor" check box but not "Excessive GC".
    Then, I added "kvem.excessivegc: true" to emulator.properties in /wtklib.
    It doesn't work.
    Any suggestion?

  • Memory monitor in OTA

    Hi.
    I can't get the memory monitor to start when running my appliction via OTA. During regular execution it works fine but I my appliction needs to run via OTA to use the PushRegestry.
    What can I do??? please help!

    Why do you think there is a discrepancy? If you click the apple on the menu bar, and about this mac, how much memory does it say you have? What does the activity monitor say you have (and where are you reading it from)?

  • Set Xms/Xmx based on Jconsole memory monitoring

    I used jconsole to monitor memory usage of a java server program running with JDK 1.5.0.3 in Linux, in order to set the Xms/Xmx option for the program. I found that memory usage of the process is no more than 4MB. But somehow after setting the Xms/Xmx to be 4MB, the server program could not run (its client programs could not connect to it). So I tuned the Xms/Xmx value and when I raised them to 512MB, then the server worked again.
    I don't understand why this happens. Is Jconsole reading not a good reflection of the heap memory usage? Or something else might be wrong?
    Thanks for any idea on this.

    <Jos van der Velden> wrote in message news:[email protected]..
    Hi,
    We are using weblogic 8.1 sp3 with the jdk1.4.2_05 (we do not use jrocket) for the implementation of some of our solutions.
    We are trying to optimize performance generally on servers with 2 processors and 4-8Gb of RAM, and some exceptions such as forinstance a test-machine we have at the moment with 4 processors and 20 Gb of RAM.
    >
    Although we seem to be able to improve performance by raising the settings for Xms and Xmx to 1024m ( even though our developmenttests done in the labs in Cary, NC - USA have resulted in recommendations that show lower values ) we would like to have some more
    info because not all info we have points to the same directions. For instance
    1. What are theoretically the maximum values for these settings (in particular Xms and Xmx)?Theoretically the maximum is a memory space addressable by a process.
    2. Should Xms and Xmx be set to the same value (as mentioned in info from your website - see below), or are there situations wheredifferent values could improve performance ?
    For a production environment Xms and Xmx should be equal so that JVM doesn't
    spend time shrinking and expanding heap.
    3. Is there other general advice you can give for improving performance using these settings ?Generally it is a good idea to keep heap under 1G. Bigger heap means longer GC-s.
    You may consider co-locating cluster nodes running in separate JVMs if you have
    enough CPUs and extensive RAM. Generally 2 CPUs per weblogic instance is enough.
    Regards,
    Slava Imeshev

  • Memory Monitoring

    Hi, my application is sometimes performing rather complicated calculations and transfers and I keep getting heap memory exception in that cases. It seems that with smaller tasks, after they are finished, System.gc() clears quite enough memory so i want to ask if there is any way to monitor current JVM memory usage/status from inside the application and maybe when going to my critical 80MB (i watch it in process manager and it fails approx. at 80 MB), i can pause the processing thread to call garbage collector.
    Thanks for ideas,
    Regards,
    Marek

    I tried to assing to the project's compiler options in NetBeans the parameter -Xmx1000M but it says build failed. I can't google out any meaningfull pages about java compiler arguments. Please, do you know any good ones?
    Regars, Marek
    -Sorry i noticed it should be in VM options so now i run the program and see if that extra memory is any good. Anyway the question remains, if there is anything in api to help with monitoring the memory usge from inside the programme.
    Cheers,
    Edited by: Zeratul on Sep 5, 2008 3:48 PM

  • Memory Monitor API for web application

    Hello All,
    Does any one knows any API for monitoring memory of a certain web application ??
    Thanks in advance

    Are there any other ways to monitor jvm state besides JMX? I wonder if there is a specific API to monitor jvm's memory. JMX is the specific API used to create software that monitors the memory in the JRE.
    If you want to monitor memory of an application, and don't feel like writing a program to monitor memory, you can use the JConsole application that comes with the Java JDK.

Maybe you are looking for

  • Filling table field on basis of selected value

    Hello, The model has a form (Quotation header) and a table (Quotation lines). In the header I have the Default Engine , which is a push button [(layout)|http://img410.imageshack.us/img410/3998/quotation1ff6.jpg]. On click displays a pop-up with list

  • Issue when updating a trigger

    I have a trigger that is supposed to insert when a button is pressed and update when a different button is pressed. When inserting, everything works but when updating, UPDATED_ON and UPDATED_BY is put in the database but VOIDED_BY,VOIDED_ON,ARCHIVED_

  • Integration of webdynpro abap custom iview into standard ESS/MSS portal

    Hello all, Could anybody please throw light on how to integrate custom iview which is developed in Webdynpro ABAP into standard tab in MSS (Webdynpro java) For example.I want to add few custom fields(which are mapped to infotype 0041) into general in

  • How to get photos off SDHC card in camera to MacBook, iPhoto won't read them

    Panasonic Lumix camera with SDHC card full of photos.  iPhoto on MacBook, OSX 10.9.3 will not read either through cable or card reader. How can i retrieve these pix?  Obviously picked the wrong San Disk card but now what?

  • How to change my app centre ?

    When I use the App to download  come my centre in china but I in Singapore