Memory Leak Detector data collection timing

Hello,
I am Yoshizo Aori working at HP Japan.
I would like to know timing of data collection for
updating object type byte size increase rate.
Data collection at garbage collection or any other timing?
Is it possible to change the timing of the data collection?

Yoshizo,
The actual "Growth(bytes/sec)" column is updated along with the other columns at every normal GC and currently, independent of any GC, also every ten seconds. This interval is not yet configurable. (While the trend analysis is running, it is possible to manually press "Refresh" to get shorter time between updates.)
However, the Growth column is primarily calculated using historic data collected during normal GCs while the trend analysis is active. Only if the historic data shows a difference in heap usage, the current value shown in the "Size (KB)" column is taken into account. The effect is that the "Refresh" button only updates Growth column rows that have had non-zero values.
This also means that if an application leaks slowly and doesn't generate enough garbage to trigger a GC in the near future, you may not notice it by looking at the Growth column. If so, it is possible to trigger a GC, and thus a possible collection of historic data, by selecting "Garbage Collect" from the Action menu.
Remember though, since the Growth column represents the growth rate over the entire time that the trend analysis has been running, you may want to avoid very long running analyses. In fact, after a while, historic data is not collected every GC but more and more seldom.

Similar Messages

  • IsJRockit Memory leak detector API available ?

    I would like to write up a JAVA client to gather heap information, things like number of instances and memory size of given object(s). These info can be displayed by memory leak detector, so there has to be an interface. my question is that is this API available for me to use? what kind of license if any I need to purchase if I intend to use my client in production?
    thanks in advance.

    Yes, JVMTI is a native interface and requires a non-java library. It's probably not a good idea to try to monitor a Java application by running more Java code in the same JVM because of the interference you create.
    Regards,
    /Staffan

  • New Memory Leak Detector released

    This week we released an updated version of the Memory Leak Detector. It now features a much improved graphical user interface as well as more powerful ways to track down memory leaks.
    The tool is designed to help you find memory leaks in production type environments without causing much overhead. It allows you to attach to a running JRockit process, analyze the heap, and detach, leaving the process running at full speed again.
    There is an article on dev2dev which describes the tool in more detail: http://dev2dev.bea.com/pub/a/2005/06/memory_leaks.html
    Download the free tool today at: http://dev2dev.bea.com/wljrockit/tools.html
    Comments are always welcome here in the forum.
    Regards,
    /Staffan Larsen

    FYI, the console ist providing this stack trace in the details window:
    java.io.IOException: Unsupported JVM on host 'localhost' at port 7090.
    Make sure you are running the correct version of JRockit.
         at com.jrockit.memleak.model_impl.MemleakUtil.handleConnectionException(Unknown Source)
         at com.jrockit.memleak.model_impl.MemleakUtil.doConnect(Unknown Source)
         at com.jrockit.memleak.model_impl.MemleakUtil.access$000(Unknown Source)
         at com.jrockit.memleak.model_impl.MemleakUtil$1.run(Unknown Source)
         at foxtrot.AbstractWorkerThread$2.run(AbstractWorkerThread.java:49)
         at java.security.AccessController.doPrivileged(Native Method)
         at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:45)
         at foxtrot.workers.DefaultWorkerThread.run(DefaultWorkerThread.java:153)
         at java.lang.Thread.run(Unknown Source)
    Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
         at com.jrockit.memleak.comm.RemoteMLSController.getServerConnection(RemoteMLSController.java:152)

  • Memory Leak / Strange Garbage Collection

    Help!
    We are having strange problems that appear to be related to a memory leak. The
    strange part is that even if we don't hit the site, it appears to leak. Can someone
    please explain the output below: Notice how freespace is decreasing, even with
    no direct site activity:
    [GC 48857K->35514K(130560K), 0.0136978 secs]
    [GC 49018K->35548K(130560K), 0.0144821 secs]
    [GC 49052K->35550K(130560K), 0.0128796 secs]
    [GC 49054K->35549K(130560K), 0.0121789 secs]
    [GC 49053K->35547K(130560K), 0.0126394 secs]
    [GC 49051K->35582K(130560K), 0.0161642 secs]
    [GC 49086K->35770K(130560K), 0.0209171 secs]
    [GC 49247K->36005K(130560K), 0.0188181 secs]
    [GC 49509K->36198K(130560K), 0.0129967 secs]
    etc...
    If I understand the numbers correctly, we have less and less free space available.
    If anyone has any insights into this it will be greatly appreciated. We have problems
    moving into production.
    Our environment: Solaris 8, Jdk1.3.1, WL 5.1
    Chris

    Chris - turn off verbose GC and and don't worry about it.
    Visit java.sun.com and read all about Java and Garbage Collection and JVMs.
    Weblogic does 'stuff' all on it's own even when it is not being accessed - just
    like your refrigerator runs when are on vacation - (please tell me you don't worry
    about that too). Objects get created and deleted. There is no pressing need for
    the garbage collector to recover every scrap of unused memory - so it doesn't.
    When the JVM does desperately need memory, it will run a Full GC and recover (almost)
    all of that.
    Then again it's nice to see someone who is curious about how the darn thing works.
    :) Mike
    "Chris" <[email protected]> wrote:
    >
    Thanks for the information. I guess I didn't understand it properly.
    Is there a
    reason why the numbers keep increasing, even with no site activity? It
    looks like
    there is less and less free space every few minutes....? After running
    the whole
    night after posting the original message, the numbers now look like:
    [GC 55586K->42276K(130560K), 0.0136978 secs]
    ie. Just keeps going up. Why does it increase? Thanks for any explanations!
    Dimitri Rakitine <[email protected]> wrote:
    You are not 'leaking memory' (hopefully!) - these are minor collections
    (quickly
    copying objects which lived long enough to the old generation portion
    of the heap
    and reclaiming space used by objects which died young) - wait until
    major collection
    (when it says [Full GC ...]).
    Chris <[email protected]> wrote:
    Help!
    We are having strange problems that appear to be related to a memoryleak. The
    strange part is that even if we don't hit the site, it appears to
    leak.
    Can someone
    please explain the output below: Notice how freespace is decreasing,even with
    no direct site activity:
    [GC 48857K->35514K(130560K), 0.0136978 secs]
    [GC 49018K->35548K(130560K), 0.0144821 secs]
    [GC 49052K->35550K(130560K), 0.0128796 secs]
    [GC 49054K->35549K(130560K), 0.0121789 secs]
    [GC 49053K->35547K(130560K), 0.0126394 secs]
    [GC 49051K->35582K(130560K), 0.0161642 secs]
    [GC 49086K->35770K(130560K), 0.0209171 secs]
    [GC 49247K->36005K(130560K), 0.0188181 secs]
    [GC 49509K->36198K(130560K), 0.0129967 secs]
    etc...
    If I understand the numbers correctly, we have less and less free
    space
    available.
    If anyone has any insights into this it will be greatly appreciated.We have problems
    moving into production.
    Our environment: Solaris 8, Jdk1.3.1, WL 5.1
    Chris--
    Dimitri

  • JBoss EAP 6 On JRockit - Memory Leak

    hello team.
    I have memory leak problem on jboss and jrockit.
    My Environment :
    1. OS :          
    CentOS release 6.4 (Final)
    2. JRockit :     
    java version "1.6.0_45"
         Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
         Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64, compiled mode)
    3. Application Server:
    JBoss EAP 6.2.0.GA
    4. Application
    Large EJB Application (100 and more EJB Beans (Stateless, Stateful,  MDB, Timers and so on)
    Everything works fine on older application server versions (4.3 , 4.2)
    But now I have Problem
    Of course I know that problem is new version - and i have discussion on JBoss forums.
    but guys I have question about jrockit with you:
    What is the option "Other" in memory ??
    [jboss@jboss-new bin]$ jrcmd 17114  print_memusage
    17114:
    Total mapped                       8457864KB           (reserved=2983100KB)
    -              Java heap              3145728KB           (reserved=0KB)
    -              GC tables            105232KB         
    -          Thread stacks       46412KB           (#threads=138)
    -          Compiled code       1048576KB           (used=12257KB)
    -               Internal                   1480KB         
    -                     OS       170324KB         
    -                  Other       3639056KB         
    -            Classblocks         10496KB           (malloced=9631KB #28393)
    -        Java class data       289536KB           (malloced=192391KB #133697 in 28393 classes)
    - Native memory tracking     1024KB           (malloced=294KB #10)
    [jboss@jboss-new bin]$
    This size increases every time - and took entire amount of RAM.
    Thank in Advance.
    Regards,
    Paata Lominadze

    Not sure what the 'other' is, but it is probably best shown by using an example. By using displayMap we can display a memory map of various JVM subsystems and libraries that are loaded, including third-party libraries.
    ./jrcmd 4523 print_memusage displayMap
    Total mapped                  3984796KB           (reserved=2978740KB)
    -              Java heap       524288KB           (reserved=0KB)
    -              GC tables        17548KB         
    -          Thread stacks        20276KB           (#threads=39)
    -          Compiled code      1048576KB           (used=14224KB)
    -               Internal         1672KB         
    -                     OS       146924KB         
    -                  Other      2092648KB         
    -            Classblocks         7424KB           (malloced=7381KB #20064)
    -        Java class data       124416KB           (malloced=124411KB #91048 in 20064 classes)
    - Native memory tracking         1024KB           (malloced=118KB #10)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        OS                          *java    r x 0x0000000000400000.(     76KB)
        OS                          *java    rw  0x0000000000612000.(      4KB)
        OS                        *[heap]    rw  0x00000000007c1000.(    132KB)
       INT                           Poll    r   0x000000007fffe000 (      4KB)
       INT                         Membar    rw  0x000000007ffff000.(      4KB)
       MSP              Classblocks (1/2)    rw  0x00000000df8c0000 (   6912KB)
       MSP              Classblocks (2/2)    rw  0x00000000dff80000 (    512KB)
      HEAP                      Java heap    rw  0x00000000e0000000.( 524288KB)
        OS                    *ld-2.12.so    r x 0x0000003664400000.(    128KB)
        OS                    *ld-2.12.so    r   0x000000366461f000 (      4KB)
        OS                    *ld-2.12.so    rw  0x0000003664620000 (      4KB)
        OS                   **ld-2.12.so    rw  0x0000003664621000.(      4KB)
       OS           *gconv-modules.cache    r   0x00007f8f2e4a0000 (     28KB)
    THREAD                     Stack 4630    rwx 0x00007f8f2e4a7000 (      8KB)
    THREAD                     Stack 4630        0x00007f8f2e4a9000 (     12KB)
    THREAD                     Stack 4630    rwx 0x00007f8f2e4ac000 (    244KB)
       MSP         Java class data (5/37)    rw  0x00007f8f2e4e9000 (  14336KB)
       MSP         Java class data (9/37)    rw  0x00007f8f2fa40000 (   5888KB)
                                             rw  0x00007f8f30000000 (    188KB)
                                                 0x00007f8f3002f000 (  65348KB)
                                             rw  0x00007f8f34000000 (    132KB)
                                                 0x00007f8f34021000 (  65404KB)
                                             rw  0x00007f8f38000000 (    412KB)
                                                 0x00007f8f38067000.(  65124KB)
       MSP        Java class data (10/37)    rw  0x00007f8f3c034000 (  34048KB)
                                             rw  0x00007f8f3e174000 (   8200KB)
       MSP        Java class data (11/37)    rw  0x00007f8f3e976000 (    256KB)
        OS                     *libhpi.so    rw  0x00007f8fb37fc000 (      8KB)
        OS                    **libhpi.so    rw  0x00007f8fb37fe000 (      4KB)
      CODE                  Compiled code    rwx 0x00007f8fb37ff000 (     64KB)
      CODE                  Compiled code    rwx 0x00007f8fb380f000 (    128KB)
      CODE                  Compiled code    rwx 0x00007f8fb382f000 (     64KB)
      MSP        Java class data (37/37)    rw  0x00007f8ff83a1000 (    512KB)
        GC Modified Union Set (committed)    rw  0x00007f8ff8421000 (    132KB)
        GC                     Card table    rw  0x00007f8ff8442000 (   1024KB)
        GC        Object bits (committed)    rw  0x00007f8ff8542000 (   8196KB)
    Here
    - thread is thread related (such as thread stacks)
    - int, internal use (such as pointer pages)
    - heap, chunk used by JRockit for the Java heap
    - os, mapped directly from the operating system, such as third party DLLs or shared objects
    - msp, memory space. a memory space is a native heap with a specific purpose, for example native memory allocation inside the JVM
    - gc, garbage collection related, for example live bits
    - code, compiled code
    The 'other' memory space looks to me (from the blank entries in the above print-out) like they are a memory pages to are still not used. When the JVM starts it mappes an amount of memory. To my knowledge JRockit uses mmap (mmap(2) - Linux manual page), which creates a new mapping in the virtual address space. JRockit reserves an amount of memory (Java Heap (heap where your object instances go) + its own runtime (all the others)).
    To see where the growth is in the various memory spaces, you can use 'print_memusage baseline', after which you can execute print_memusage again, for example,
    ./jrcmd 4523 print_memusage scale=M
    4523:
    Total mapped                     3896MB      +4MB (reserved=2905MB -3MB)
    -              Java heap          512MB           (reserved=0MB)
    -              GC tables           17MB         
    -          Thread stacks           19MB           (#threads=39)
    -          Compiled code         1024MB           (used=14MB +1MB)
    -               Internal            1MB         
    -                     OS          143MB         
    -                  Other         2043MB         
    -            Classblocks            7MB           (malloced=7MB #20596 +532)
    -        Java class data          126MB      +4MB (malloced=125MB +4MB #93640 +2592 in 20596 classes)
    - Native memory tracking            1MB           (malloced=0MB #20 +10)
    Note the additional column that prints out the difference in memory usage in relation to the baseline. You can also monitor native allocations by using trace_alloc_sites, memory allocations can then be displayed with different levels of detail using the level argument.
    ./jrcmd 4523 print_memusage trace_alloc_sites=true
    4523:
    Total mapped                  3989660KB   +4864KB (reserved=2974732KB -4008KB)
    -              Java heap       524288KB           (reserved=0KB)
    -              GC tables        17548KB         
    -          Thread stacks        20276KB           (#threads=39)
    -          Compiled code      1048576KB           (used=15265KB +1040KB)
    -               Internal         1672KB         
    -                     OS       146924KB         
    -                  Other      2092648KB         
    -            Classblocks         7680KB    +256KB (malloced=7669KB +287KB #20596 +532)
    -        Java class data       129024KB   +4608KB (malloced=128967KB +4555KB #93640 +2592 in 20596 classes)
    - Native memory tracking         1024KB           (malloced=236KB +118KB #20 +10)
    ./jrcmd 4523 print_memusage level=3
    4523:
    Total mapped                  3989660KB   +4864KB (reserved=2974732KB -4008KB)
    -              Java heap       524288KB           (reserved=0KB)
    -              GC tables        17548KB         
    -          Thread stacks        20276KB           (#threads=39)
    -          Compiled code      1048576KB           (used=15265KB +1040KB)
    -               Internal         1672KB         
    -                     OS       146924KB         
    -                  Other      2092648KB         
    -            Classblocks         7680KB    +256KB (malloced=2KB -7379KB #4 -20060) Not fully traced
    -        Java class data       129024KB   +4608KB (malloced=26KB -124385KB #16 -91032 in 20596 classes) Not fully traced.
    - Native memory tracking         1024KB           (malloced=118KB #10) Not fully traced.
         gather_memorymap_database                     memtrace.c: 206         91KB     +91KB (#1 +1)
               gather_memory_usage                  osal_mspace.c:5142          7KB      +7KB (#4 +4)
      msGatherMSpacesUsageDatabase                  osal_mspace.c:6128          2KB      +2KB (#1 +1)
      msGatherMSpacesUsageDatabase                  osal_mspace.c:6134         16KB     +16KB (#1 +1)
    Note this is more on the JVM level, in your case in might be beneficial to investigate what is happening on the java heap. By using print_object_summary you can get insight how memory on the heap is used on a per-class basis. To get to the bottom of where the memory leak is you can use the memory-leak-detector (an example of its use can be found here Middleware Snippets: Fast, Faster, JRockit). You can also obtain a heapdump that can be analyzed by using for example MAT (see for an example here Middleware Snippets: Visualizing Class Loading). To obtain a heapdump you can run the command, for example,
    [weblogic@machine1 bin]$ ./jrcmd 4523 runsystemgc full=true fullcompact=true
    4523:
    [weblogic@machine1 bin]$ ./jrcmd 4523 hprofdump filename=/home/weblogic/dump.hprof
    4523:
    Wrote dump to /home/weblogic/dump.hprof
    Note that this first issues a full GC by using the runsystemgc command.

  • Maximize server uptime - memory leak?

    Since we stabilized the newly introduced WLI 8.1 application we are now fine tuning the JVM. We are facing some kind of memory leak which forces us to reboot the WLS instances daily.
    I'm now asked to identify some strategies how we could let the WLI instances run for longer than 1 day. My goal is 7 days, so that the machines must only be touched once a week. The relevant JVM settings are like this:
    -Xms2048m -Xmx2048m -Xmanagement -Djrockit.managementserver.port=30011 -XgcPrio:throughput
    I've choosen the "throughput" strategy as we have here a systems which acts asynchronously most of the time (WLI). I have attached two JRA records. The first ("1day") shows a system which has an uptime of now 16 hours. The heap utilization is almost all the time between 90%-100%. Things get worse after a while. In the consequence we are rebooting the server when we see more and more timeout-exceptions in our WLI layer and heavy GC activity ("average time spent in GC")
    The other record ("leakdetector") shows a system which is now running for almost 3 hours. Here I connected the memory leak detector. The graph looks a bit better / more balanced. Means, that after 3 hours the avg heap util remains between the margins of 40-50 %. The trend of the bottom margin however clearly indicates an increasing memory footprint.
    To understand this in more detail I started using the memory leak analyzer. So far I got no benefit from using the tool, though it looks very impressive. However, when I connect the memory leak analyzer I can observe some strange heap graph changes. I suppose the memory leak detector has some impact onto the GC strategies, doesn't it? My heap graph looks totally different with no leak detector attached. What can be the reason on this?
    Also I'm quite a bit confused why the "Growth" indicator always stays at 0 bytes/sec, even when I can see that objects are getting bigger and bigger. What is the secret here?
    i appreciate every comment you have on my case,
    thanks a lot

    You might also look at approaching the problem for a different perspective. Which transactions, requests, components are creating the most amount of memory? What concurrent requests where active when the memory jumped or an OOME was thrown. I have found this approach effective in getting a good idea on where to focus memory diagnostics after ruling of course a resource capacity issue.
    The following article discusses the difference between a leak and a capacity problem.
    http://www.jinspired.com/products/jxinsight/outofmemoryexceptions.html
    Also you should try high level monitoring to see whether there are global patterns in metric data that provides clues. This blog entry shows what is possible with professional performance management tools with visualizations going beyond pie charts and table views.
    Beautiful Evidence: Metric Monitoring
    http://blog.jinspired.com/?p=33
    There are also many low level memory inspection tools on the market that might help quickly navigate the heap and identify the problem though I think the JRA tool has probably most of the same features.
    Regards,
    William Louth
    JXInsight Product Architect
    CTO, JInspired
    "Java EE tuning, testing, tracing, and monitoring with JXInsight"
    http://www.jinspired.com

  • Hung application and rejected memory lead detector

    I had two problems that may be related with JRockit.
    1. After a few days, the application stopped processing input data:
    - The application receives input using a server sockit on tcp port 2000
    from which it would still accept a connection. Then the tcp receive queue
    just started building, indicating that the application was not removing data
    from the receive queue.
    - The application rejected connections on the other server sockit it
    advertises - tcp 5000.
    - It also seemed to have disconnected from mysql, but I couldn't be sure
    of that.
    2. To rule out a memory leak, I started up Management Console's wonderful
    Memory Leak detector from a remote machine. I use Management Console and
    Memory Leak detector in this configuration alot so I'm familiar with it.
    The memory leak detector was refused. The console output from the
    application's server follows.
    The application is running on JRockit 1.4.2_05 on SuSE 8.2.
    I'm more concerned and baffled by the application's stalling. Do you have
    any problem isolation ideas? Does the Memory Leak detector rejection
    provides some clue?
    Thanks
    -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/>
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> jrockit.license.LicenseException:
    java.lang.reflect.InvocationTargetException
    -bash: jrockit.license.LicenseException:: Permission denied
    at
    jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at java.lang.Thread.run()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> Caused by: java.lang.reflect.InvocationTargetException
    -bash: Caused: command not found
    at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    tmx@tmx-ccdb:/>         ... 9 more
    tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException:
    jrockit.license.LicenseException: License not valid: license has expired
    -bash: Caused: command not found
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)
    tmx@tmx-ccdb:/>         at
    jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown
    Source)
    -bash: syntax error near unexpected token `('
            at
    jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    tmx@tmx-ccdb:/>         at
    jrockit.license.LicenseManager.initialize()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)
    tmx@tmx-ccdb:/>         ... 12 more
    tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: License not
    valid: license has expired
    -bash: Caused: command not found
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         ... 15 more
    tmx@tmx-ccdb:/>
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>
    -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/>         at java.lang.Thread.run()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> jrockit.license.LicenseException: > java.lang.reflect.InvocationTargetException> -bash: jrockit.license.LicenseException:: Permission denied>         at > jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown > Source)>         at > com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)> tmx@tmx-ccdb:/>         at > jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown > Source)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)tmx@tmx-ccdb:/>         ... 9 moretmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: jrockit.license.LicenseException: License not valid: license has expired-bash: Caused: command not foundtmx@tmx-ccdb:/>         at jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at jrockit.license.LicenseManager.initialize()V(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         ... 12 moretmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: License not valid: license has expired-bash: Caused: command not foundtmx@tmx-ccdb:/>         ... 15 moretmx@tmx-ccdb:/>-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at java.lang.Thread.run()V(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> Caused by: java.lang.reflect.InvocationTargetException-bash: Caused: Permission deniedtmx@tmx-ccdb:/> -bash: Caused: command not found-bash: -bash:: command not foundtmx@tmx-ccdb:/>         at jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>         ... 12 moretmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/>tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         ... 9 more> tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: > jrockit.license.LicenseException: License not valid: license has expired> -bash: Caused: command not found> tmx@tmx-ccdb:/>         at > jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown > Source)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at jrockit.license.LicenseManager.initialize()V(Unknown Source)-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown > Source)> -bash: syntax error near unexpected token `('-bash: syntax error near unexpected token `('tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         ... 12 more-bash: ...: Permission deniedtmx@tmx-ccdb:/> tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: License not valid: license has expired-bash: Caused: Permission deniedtmx@tmx-ccdb:/> -bash: Caused: command not found-bash: -bash:: command not foundtmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         ... 15 more-bash: ...: Permission deniedtmx@tmx-ccdb:/> tmx@tmx-ccdb:/>-bash: syntax error near unexpected token `newline'tmx@tmx-ccdb:/>-- Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

    one addition clue...
    When the application was hung, the Management Console could not connect to
    the JVM. I verified that -Xmanagement was one of the switches using SuSE's
    ps -ax command. I had connected a few days earlier successfully.
    So the JVM was not accepting management connections.
    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    I had two problems that may be related with JRockit.
    1. After a few days, the application stopped processing input data:
    - The application receives input using a server sockit on tcp port 2000
    from which it would still accept a connection. Then the tcp receive queue
    just started building, indicating that the application was not removing
    data from the receive queue.
    - The application rejected connections on the other server sockit it
    advertises - tcp 5000.
    - It also seemed to have disconnected from mysql, but I couldn't be
    sure of that.
    2. To rule out a memory leak, I started up Management Console's wonderful
    Memory Leak detector from a remote machine. I use Management Console and
    Memory Leak detector in this configuration alot so I'm familiar with it.
    The memory leak detector was refused. The console output from the
    application's server follows.
    The application is running on JRockit 1.4.2_05 on SuSE 8.2.
    I'm more concerned and baffled by the application's stalling. Do you have
    any problem isolation ideas? Does the Memory Leak detector rejection
    provides some clue?
    Thanks
    -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/>
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> jrockit.license.LicenseException:
    java.lang.reflect.InvocationTargetException
    -bash: jrockit.license.LicenseException:: Permission denied
    at
    jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at java.lang.Thread.run()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> Caused by: java.lang.reflect.InvocationTargetException
    -bash: Caused: command not found
    at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    tmx@tmx-ccdb:/> at
    jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> at
    jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)
    tmx@tmx-ccdb:/>         ... 9 more
    tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException:
    jrockit.license.LicenseException: License not valid: license has expired
    -bash: Caused: command not found
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)
    tmx@tmx-ccdb:/>         at
    jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    at
    jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
    Source)
    tmx@tmx-ccdb:/>         at
    jrockit.license.LicenseManager.initialize()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown
    Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)
    tmx@tmx-ccdb:/>         ... 12 more
    tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: License not
    valid: license has expired
    -bash: Caused: command not found
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         ... 15 more
    tmx@tmx-ccdb:/>
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>
    -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/>         at java.lang.Thread.run()V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/>         at
    java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    -bash: syntax error near unexpected token `('
    tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `newline'
    tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> jrockit.license.LicenseException: >> java.lang.reflect.InvocationTargetException>> -bash: jrockit.license.LicenseException:: Permission denied>>         at >> jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown >> Source)>>         at >> com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)>> tmx@tmx-ccdb:/>         at >> jrockit.memleak.MemLeakFactory.createMemLeakDetector()Ljrockit.memleak.MemoryLeakDetector;(Unknown >> Source)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)> -bash: syntax error near unexpected token `('>>> tmx@tmx-ccdb:/>         at > java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)> tmx@tmx-ccdb:/>         ... 9 more> tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: > jrockit.license.LicenseException: License not valid: license has expired> -bash: Caused: command not found> tmx@tmx-ccdb:/>         at > jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.license.LicenseManager.initialize()V(Unknown Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         ... 12 more> tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: License not > valid: license has expired> -bash: Caused: command not found> tmx@tmx-ccdb:/>         ... 15 more> tmx@tmx-ccdb:/>> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > jrockit.memleak.MemLeakFactory.getInstance()Ljrockit.memleak.MemoryLeakDetector;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> com.jrockit.management.rmp.RmpQueries$5.doCommand(Lcom.jrockit.management.rmp.RmpServer;Ljava.lang.String;)Z(RmpQueries.java:184)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpQueries.executeRmpCommand(Lcom.jrockit.common.rmp.RmpPacket;Lcom.jrockit.management.rmp.RmpServer;)Ljava.lang.Boolean;(RmpQueries.java:1127)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> com.jrockit.management.rmp.RmpServer.handleCommand(Lcom.jrockit.common.rmp.RmpPacket;)V(RmpServer.java:324)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         at > jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > com.jrockit.management.rmp.RmpServer.runConnectionLoop()V(RmpServer.java:356)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> com.jrockit.management.rmp.RmpServer.run()V(RmpServer.java:163)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at java.lang.Thread.run()V(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> Caused by: > java.lang.reflect.InvocationTargetException> -bash: Caused: Permission denied> tmx@tmx-ccdb:/> -bash: Caused: command not found> -bash: -bash:: command not found> tmx@tmx-ccdb:/>         at > jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>         ... 12 more> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown >> Source)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/>> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown > Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         ... 9 more>> tmx@tmx-ccdb:/> Caused by: jrockit.license.LicenseException: >> jrockit.license.LicenseException: License not valid: license has expired>> -bash: Caused: command not found>> tmx@tmx-ccdb:/>         at >> jrockit.license.LicenseManager.initialize0([Ljava.lang.String;)V(Unknown >> Source)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         at > jrockit.license.LicenseManager.initialize()V(Unknown Source)> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> -bash: syntax error near unexpected token `('>> tmx@tmx-ccdb:/>         at >> jrockit.memleak.MemLeak.getInstance()Ljrockit.memleak.MemLeak;(Unknown >> Source)>> -bash: syntax error near unexpected token `('> -bash: syntax error near unexpected token `('> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         ... 12 more> -bash: ...: Permission denied> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/> Caused by: > jrockit.license.LicenseException: License not valid: license has expired> -bash: Caused: Permission denied> tmx@tmx-ccdb:/> -bash: Caused: command not found> -bash: -bash:: command not found> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>         ... 15 more> -bash: ...: Permission denied> tmx@tmx-ccdb:/> tmx@tmx-ccdb:/>> -bash: syntax error near unexpected token `newline'> tmx@tmx-ccdb:/>>>>>>>>>> -- > Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

  • How to configure license file for Memory Leak tool and WL Server 9.2?

    (I posted to general JRockit forum before realizing existence of this forum which is probably more applicable.)
    Here's our problem:
    Running latest version of WL 9.2 MP3 and JRockit Mission Control 3.0.1
    Able to run Mission Control, and connect to the WL Server and to run View Console with no problems.
    I can't get Memory Leak tool to run because it complains about needing a license file.
    First I tried with off the shelf WL 9.2 MP3.
    Get error:
    A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (192).
    Error: Can not find component Memory Leak Detector for JRockit * in the license file. Please check http://www.jrockit.com/license for license updates.
    So I downloaded license file from JRockit download site - wls92.zip. It contains several files, but no clear instructions on what to do with these files. I copied one of these files "LIC-WLSP92.txt" to my JRockit home as C:\bea\JROCKI~1\jre\license.bea
    Tried again. Restarted WL server. Restarted JRockit Mission Control.
    Get error: A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (3052).
    The license file does not exist at: C:\bea\JROCKI~1\jre\license.bea
    Any advise on how to install license or who to contact for help?

    Installed Mission Control 3.0.3.
    Got following message when I attempted to run Memory Leak:
    A license for Memory Leak Detector could not be found on the JRockit at (1.5) weblogic.Server (192).
    Error: Can not find component Memory Leak Detector for JRockit * in the license file.
    Please check http://www.jrockit.com/license for license updates.
    I believe that we're using the latest downloads of WebLogic 9.2.x and JRockit.
    WebLogic is running using 9.2.3 and JRockit build R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-windows-ia2
    Contents of C:\bea\jrockit_150_12\jre\license.bea:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <bea-licenses>
    <license-group format="1.0" product="JRockit" release="*">
    </license-group>
    </bea-licenses>
    Could WebLogic be misconfigured?
    Any diagnostics to help figure out the licensing?
    Any other ideas?

  • KeyboardFocusManager reason for memory leak?

    Hi all,
    with a memory leak detector we found that our application has massive memory leaks after opening and closing a JDialog and the reason we found was the following:
    The KeyboardFocusManager has a private static HashMap in which the actual focus in each window is stored. This is done by storing key/value-pairs in the HashMap with window as a key and the Component having the focus on this window as the value. Now you can throw the reference to the component away by using e.g. theComponent.setEnabled(false) - the KeyboardFocusManager then stores the pair window/null in the HashMap - but we didn't find any callable method to remove a key/value-pair from the HashMap and so the reference to the JDialog (as the key!!) stays resident and we have the reason for the memory leak. Now I have a few questions to this problem:
    1. Is it right in your opinion, that there is no method to delete the entry from this Hashtable?
    2. If this is the case - we have the opinion that there must be a good time to delete this entry (e.g. when disposing the dialog). Do you see if there is an obvious reason that this opinion is false?
    3. If no do you think this problem can be accepted as a bug by sun
    Thanks in advance and greetings from
    Holger

    I have been seeing similar behavior; I too have not found all the
    leaks. I think I have slowed the allocation by replacing some of my
    'build array' functions with the combination of 'initialize array'
    followed by 'replace array subset'. The drawback to doing it this way
    is that you have a fixed maximum number of elements allocated just once
    rather than allowing an array to grow incrementally. Please let me know
    if you try removing build arrays and if that helps.
    By the way, there is a checkbox under the options menu to deallocate
    memory as soon as possible - if you don't mind that your program runs
    more slowly, this may help to avoid the problem, at least temporarily.
    -vinny
    ciossek wrote:
    > dear all,
    > my labview program needs an increasing amount of memo
    ry when running
    > (at the time about 12k/s) which leads to swapping memory on my hdd.
    > i have found out that calling cluster references like Controls[] or
    > decos[] leads to this kind of memory leak and made a work around for
    > that (simply calling it only once at runtime) but there are more
    > memory leak(s)which i cannot find. The bugs that i have found
    > searching the labview resources does not answer my problem.
    >
    > does anybody already found out more memory leak problems ?
    >
    > thanks

  • Memory leak in Real-Time caused by VISA Read and Timed Loop data nodes? Doesn't make sense.

    Working with LV 8.2.1 real-time to develop a host of applications that monitor or emulate computers on RS-422 busses.   The following screen shots were taken from an application that monitors a 200Hz transmission.  After a few hours, the PXI station would crash with an awesome array of angry messages...most implying something about a loss of memory.  After much hair pulling and passing of the buck, my associate was able to discover while watching the available memory on the controller that memory loss was occurring with every loop containing a VISA read and error propogation using the data nodes (see Memory Leak.jpg).  He found that if he switched the error propogation to regular old-fashioned shift registers, then the available memory was rock-solid.  (a la No Memory Leak.jpg)
    Any ideas what could be causing this?  Do you see any problems with the way we code these sorts of loops?  We are always attempting to optimize the way we use memory on our time-critical applications and VISA reads and DAQmx Reads give us the most heartache as we are never able to preallocate memory for these VIs.  Any tips?
    Dan Marlow
    GDLS
    Solved!
    Go to Solution.
    Attachments:
    Memory Leak.JPG ‏136 KB
    No Memory Leak.JPG ‏137 KB

    Hi thisisnotadream,
    This problem has been reported, and you seem to be exactly reproducing the conditions required to see this problem. This was reported to R&D (# 134314) for further investigation. There are multiple possible workarounds, one of which is the one that you have already found of wiring the error directly into the loop. Other situations that result in no memory leak are:
    1.  If the bytes at port property node is not there and a read just happens in every iteration and resulting timeouts are ignored.
    2.  If the case structure is gone and just blindly check the bytes at port and read every iteration.
    3.  If the Timed Loop is turned into a While loop.
    Thanks for the feedback!
    Regards,Stephen S.
    National Instruments
    Applications Engineering

  • Memory leak pulling in data from database view or database table

    Post Author: Thang Nguyen
    CA Forum: Data Integration
    Hi,
    I'm experiencing memory leaks when using DI to load from a database view or table. I have seen the issue on 11.7.2.0 and 11.7.2.2 and was wondering if anyone else has seen it.
    You can see the row count in the monitor tab going up, but with every 1000 rows it pulls in the al_engine process consumes more and more memory until it gets to 2GB and crashes with an unknown error.
    Simlir behaviour is seen in the validation transform when doing and "IN" to another table, and with table comparisons.
    I've got a webex with support tomorrow as they don't seem to belive that this happening and just want to get a heads up if anyone else was seeing this problem.
    Thanks

    Post Author: tambol
    CA Forum: Data Integration
    HI,
    i am experiencing similar error : 
    Unknown error in transform <AIView4>.
    i am using older version of BO. how could i possibly fix this without upgrading to newest version?
    please don't be too techincal when explaining...new here
    thanks a lot!

  • [Bug?] X-Control Memory Leak with Large Data Array

    [LV2009]
    [Cross-posted to LAVA]
    I have found that if I pass a large data array (~4MB in this example) into an X-Control, it causes massive memory allocations (1 GB+).
    Is this a known issue?
    The X-Control in the video was created, then the Data.ctl was changed to 2D Array - it has not been edited in any other way.
    I also compare the allocations to that of a native 2D Array (which is only ~4MB).
    Note: I jiggled the Windows Task Manager about so that JING would update correctly, its a bit slow, but it essentially just keeps rolling up and doesn't stop.
    Demo code attached.
    Cheers
    -JG
    Unable to display content. Adobe Flash is required.
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    X Control Bug [LV2009].zip ‏42 KB

    Hi Jon (cool name) 
    Thank you very much for your reply. We came to this conclusion in the cross post and it is good to have it confirmed by LabVIEW R&D. Your response is also similar to that of my AE which I got this morning as well - see below:
    Note: Your reference number is included in the Subject field of this
    message. It is very important that you do not remove or modify this
    reference number, or your message may be returned to you.
    Hi Jon,
    You probably found some information from the forum. The US engineer has gotten back and he said that unfortunately that's expected behaviour after they have conducted some tests and this is what he replied:
    "X Controls in the background use events structures. In particular the Data Change Event is called when the value of the XControl changes (writing to the terminal, local variable, or value change property). What is happening in this case is the XControl is getting called to fast with a large set of data that the event structure is queuing the events and data that a memory leak is produced. It is, unfortunately, expect behavior. The main work around for the customer in this case is not call the XControl as often. Another possibility is to use the Synchronous Display Property to defer updates to the Xcontrol, this might slow down a leak."
    He would also like to know if you can provide with more details how you are using the Xcontrol, perhaps there is a better way. Please refer to the link below for synchronous display. Thank you.
    http://zone.ni.com/reference/en-XX/help/371361G-01/lvprop/control_synchronous_display/
    In my application I updated the X-Control @ 1Hz and it allocated at MBs/s up to 1+GB before it crashed, all within a few hours. That is why I called it a leak. I am really worried that if this CAR gets killed, there will still be an issue lingering that makes using X-Controls a major problem under the above conditions. I have had to pull two sets of libraries from my code because of this - when they got replaced with native LabVIEW controls the leak when away (but I lost reuse and encapsulation etc...).
    Anyways, I really want to use X-Control tho (now and in the future) as I like all other aspect of them. If you do not consider this a leak, can a different #CAR be raised that may modify the existing behavior? I offer the suggestion (in the cross-post) that the data be ignored rather than queued? Similar to Christian's idea, but for X-Controls. Maybe as an option?
    I look forward to discussing this with you further.
    Regards
    -Jon
    Certified LabVIEW Architect * LabVIEW Champion

  • Huge memory leaks in using PL/SQL tables and collections

    I have faced a very interesting problem recently.
    I use PL/SQL tables ( Type TTab is table of ... index by binary_integer; ) and collections ( Type TTab is table of ...; ) in my packages very widely. And have noticed avery strange thing Oracle does. It seems to me that there are memory leaks in PGA when I use PL/SQL tables or collections. Let me a little example.
    CREATE OR REPLACE PACKAGE rds_mdt_test IS
    TYPE TNumberList IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    PROCEDURE test_plsql_table(cnt INTEGER);
    END rds_mdt_test;
    CREATE OR REPLACE PACKAGE BODY rds_mdt_test IS
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    END;
    END rds_mdt_test;
    I run the following test code:
    BEGIN
    rds_mdt_test.test_plsql_table (1000000);
    END;
    and see that my session uses about 40M in PGA.
    If I repeat this example in the same session creating the PL/SQL table of smaller size, for instance:
    BEGIN
    rds_mdt_test.test_plsql_table (1);
    END;
    I see again that the size of used memory in PGA by my session was not decreased and still be the same.
    The same result I get if I use not PL/SQL tables, but collections or varrays.
    I have tried some techniques to make Oracle to free the memory, for instance to rewrite my procedure in the following ways:
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    x.DELETE;
    END;
    or
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    FOR indx in 1 .. cnt LOOP
    x.DELETE(indx);
    END LOOP;
    END;
    or
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    empty TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    x := empty;
    END;
    and so on, but result was the same.
    This is a huge problem for me as I have to manipulate collections and PL/SQL tables of very big size (from dozens of thousand of rows to millions or rows) and just a few sessions running my procedure may cause server's fall due to memory lack.
    I can not understand what Oracle reseveres such much memory for (I use local variables) -- is it a bug or a feature?
    I will be appreciated for any help.
    I use Oracle9.2.0.1.0 server under Windows2000.
    Thank you in advance.
    Dmitriy.

    Thank you, William!
    Your advice about using DBMS_SESSION.FREE_UNUSED_USER_MEMORY was very useful. Indeed it is the tool I was looking for.
    Now I write my code like this
    declare
    type TTab is table of ... index binary_integer;
    res TTab;
    empty_tab TTab;
    begin
    res(1) := ...;
    res := empty_tab;
    DBMS_SESSION.FREE_UNUSED_USER_MEMORY;
    end;
    I use construction "res := empty_tab;" to mark all memory allocated to PL/SQL table as unused according to Tom Kyte's advices. And I could live a hapy life if everything were so easy. Unfortunately, some tests I have done showed that there are some troubles in cleaning complex nested PL/SQL tables indexed by VARCHAR2 which I use in my current project.
    Let me another example.
    CREATE OR REPLACE PACKAGE rds_mdt_test IS
    TYPE TTab0 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    TYPE TRec1 IS RECORD(
    NAME VARCHAR2(4000),
    rows TTab0);
    TYPE TTab1 IS TABLE OF TRec1 INDEX BY BINARY_INTEGER;
    TYPE TRec2 IS RECORD(
    NAME VARCHAR2(4000),
    rows TTab1);
    TYPE TTab2 IS TABLE OF TRec2 INDEX BY BINARY_INTEGER;
    TYPE TStrTab IS TABLE OF NUMBER INDEX BY VARCHAR2(256);
    PROCEDURE test_plsql_table(cnt INTEGER);
    PROCEDURE test_str_tab(cnt INTEGER);
    x TTab2;
    empty_tab2 TTab2;
    empty_tab1 TTab1;
    empty_tab0 TTab0;
    str_tab TStrTab;
    empty_str_tab TStrTab;
    END rds_mdt_test;
    CREATE OR REPLACE PACKAGE BODY rds_mdt_test IS
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    BEGIN
    FOR indx1 IN 1 .. cnt LOOP
    FOR indx2 IN 1 .. cnt LOOP
    FOR indx3 IN 1 .. cnt LOOP
    x(indx1) .rows(indx2) .rows(indx3) := indx1;
    END LOOP;
    END LOOP;
    END LOOP;
    x := empty_tab2;
    dbms_session.free_unused_user_memory;
    END;
    PROCEDURE test_str_tab(cnt INTEGER) IS
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    str_tab(indx) := indx;
    END LOOP;
    str_tab := empty_str_tab;
    dbms_session.free_unused_user_memory;
    END;
    END rds_mdt_test;
    1. Running the script
    BEGIN
    rds_mdt_test.test_plsql_table ( 100 );
    END;
    I see that usage of PGA memory in my session is close to zero. So, I can judge that nested PL/SQL table indexed by BINARY_INTEGER and the memory allocated to it were cleaned successfully.
    2. Running the script
    BEGIN
    rds_mdt_test.test_str_tab ( 1000000 );
    END;
    I can see that plain PL/SQL table indexed by VARCHAR2 and memory allocated to it were cleaned also.
    3. Changing the package's type
    TYPE TTab2 IS TABLE OF TRec2 INDEX BY VARCHAR2(256);
    and running the script
    BEGIN
    rds_mdt_test.test_plsql_table ( 100 );
    END;
    I see that my session uses about 62M in PGA. If I run this script twice, the memory usage is doubled and so on.
    The same result I get if I rewrite not highest, but middle PL/SQL type:
    TYPE TTab1 IS TABLE OF TRec1 INDEX BY VARCHAR2(256);
    And only if I change the third, most nested type:
    TYPE TTab0 IS TABLE OF NUMBER INDEX BY VARCHAR2(256);
    I get the desired result -- all memory was returned to OS.
    So, as far as I can judge, in some cases Oracle does not clean complex PL/SQL tables indexed by VARCHAR2.
    Is it true or not? Perhaps there are some features in using such way indexed tables?

  • Memory Leak: Do I need to explicitly free memory reference for collection?

    Hi,
    My web application uses JRockit JDK 1.4.2, Java Servlet, JSP &Struts. It is a clustered environment using WL 8.1 sp 4. I am investigating whether there are any memory leaks in the application & what are best practices to avoid leaks.
    A specific scenario is as follows:
    For an incoming request, the struts action class creates object �O� (of class A) and set �O� as a request attribute. This request attribute is used to display values on the JSP.
    Now, class A has a heavily nested structure: Class A has object of class B, where B has a HashSet of objects of type C and where C has an object of type D and E.
    Though I set this object �O� in request scope, do I need to explicitly nullify any of the references within object �O�? Can �not doing this� result in a memory leak?
    Thanks in advance,
    sjaiprakash

    jEnv->ReleaseStringUTFChars((jstring) jStr, str);free(str); //Is this line valid or outright wrong?Outright wrong.
    Another question is if ReleaseStringUTFChars actually frees str then will it set str to NULL?No, that's impossible by the semantics of C and C++.
    I guess not as we are not sending this pointer by reference.Exactly, so what you described is impossible. No need to ask really.
    My last question is if str is NULL then calling ReleaseStringUTFChars over it can cause any problem?How could it be null? If it comes from GetStringUTFChars that's impossible, and if it doesn't you don't have any business calling ReleaseStringUTFChars() on it, whatever its value.

  • Memory Leak w/ WebLogic 5.1

    I've created a simple servlet to EJB skeleton and built a stress testing
              tool to make sequential requests to the servlet which in turn creates an
              instance of a stateless session been. Both the servlet and bean do not have
              any real logic in them, just some minimal timing output.
              When run for a few million iterations, the WebLogic JVM slowly leaks memory
              that cannot be reclaimed even with force garbage collection from the
              WebLogic console. Below are 3 snippets of code showing the servlet, the EJB
              call, and the simple client test.
              If anyone else is ecperiencing similar problems or can see a flaw, I'd be
              most grateful.
              Andy
              Servlet code
              protected void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException
              TestBean bean;
              long requestStartTime = System.currentTimeMillis();
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.println("<html><head><title>Hello World!</title></head>");
              out.println("<body><h1>Hello World!</h1></body></html>");
              try {
              bean = home.create();;
              bean.testMethod();
              catch (Exception e) {
              totalTime += (System.currentTimeMillis() - requestStartTime);
              Bean code
              public class TestBean implements SessionBean {
              private SessionContext ctx;
              public void ejbActivate() {
              public void ejbPassivate() {
              public void ejbCreate() {
              public void ejbRemove() {
              public void setSessionContext(SessionContext ctx) {
              this.ctx = ctx;
              public void testMethod() {
              Client code
              public void simulateLoad()
              throws IOException
              long totalRequestTime = 0, requestTime, requestStartTime;
              long totalResponseTime = 0, responseTime, responseStartTime;
              try {
              log("Opening connection to "+ url + (debug ? "?debug=true" : ""));
              for (int i = 1; i <= numRequests; i++) {
              HTTPConnection con = new HTTPConnection("localhost",7001);
              HTTPResponse rsp;
              byte data[];
              if ((i % 10000) == 0) {
              log("\nGET Request "+i+" to "+ url + (debug ? "?debug=true" :
              requestStartTime = System.currentTimeMillis();
              rsp = con.Get("/mcumanager" + (debug ? "?debug=true" : ""));
              requestTime = System.currentTimeMillis() - requestStartTime;
              responseStartTime = System.currentTimeMillis();
              if (rsp.getStatusCode() >= 300) {
              log("Received Error: "+rsp.getReasonLine());
              log(new String(rsp.getData()));
              else
              data = rsp.getData();
              responseTime = System.currentTimeMillis() - responseStartTime;
              totalRequestTime += requestTime;
              totalResponseTime += responseTime;
              if ((i % 10000) == 0) {
              log("GET Response "+i+": "+rsp);
              if ((i % 100) == 0) {
              log ("Avg request time :
              "+((float)totalRequestTime/(float)i)+"ms");
              log ("Avg response time :
              "+((float)totalResponseTime/(float)i)+"ms");
              catch (IOException ioe) {
              log(ioe.toString());
              ioe.printStackTrace();
              catch (ModuleException me) {
              log("Error handling request: " + me.getMessage());
              me.printStackTrace();
              

    Please read discussion "WLS dies during stress testing" & "performance
              degradation PROBLEM" in interest.performance.
              Hope it helps.
              Cheers - Wei
              Andy Riedel <[email protected]> wrote in message
              news:[email protected]...
              > I have additional information on this problem. I have replicated the exact
              > same memory leak issue using the included HelloWorldServlet. I use Jrun's
              > ServletKiller stress tool running 16 simultaneous request threads
              requesting
              > the HelloWorldServlet. This WebLogic 5.1 server will leak memory and
              > eventually run out of memory all together with an OutOfMemoryException
              after
              > about 6-8 hours. This indicates that the bug is in the base HTTP Servlet
              > engine code.
              >
              > I have tried turning off the http log (i.e. access.log) as well as
              > notification events from the servlet engine and it still leaks memory.
              >
              > Andy
              >
              >
              >
              > Andy Riedel Chief Architect HearMe Call me through VoiceCONTACTtm -- right
              > from your computer. Online Status:
              > "Andy Riedel" <[email protected]> wrote in message
              > news:[email protected]...
              > > I've created a simple servlet to EJB skeleton and built a stress testing
              > > tool to make sequential requests to the servlet which in turn creates an
              > > instance of a stateless session been. Both the servlet and bean do not
              > have
              > > any real logic in them, just some minimal timing output.
              > >
              > > When run for a few million iterations, the WebLogic JVM slowly leaks
              > memory
              > > that cannot be reclaimed even with force garbage collection from the
              > > WebLogic console. Below are 3 snippets of code showing the servlet, the
              > EJB
              > > call, and the simple client test.
              > >
              > > If anyone else is ecperiencing similar problems or can see a flaw, I'd
              be
              > > most grateful.
              > >
              > > Andy
              > >
              > >
              > > Servlet code
              > > -------------
              > >
              > > protected void doGet(HttpServletRequest req, HttpServletResponse res)
              > > throws ServletException, IOException
              > > {
              > > TestBean bean;
              > >
              > > long requestStartTime = System.currentTimeMillis();
              > >
              > > res.setContentType("text/html");
              > > PrintWriter out = res.getWriter();
              > > out.println("<html><head><title>Hello World!</title></head>");
              > > out.println("<body><h1>Hello World!</h1></body></html>");
              > >
              > > try {
              > > bean = home.create();;
              > > bean.testMethod();
              > > }
              > > catch (Exception e) {
              > > }
              > >
              > > totalTime += (System.currentTimeMillis() - requestStartTime);
              > > }
              > >
              > > Bean code
              > > -----------
              > > public class TestBean implements SessionBean {
              > >
              > > private SessionContext ctx;
              > >
              > > public void ejbActivate() {
              > > }
              > >
              > > public void ejbPassivate() {
              > > }
              > >
              > > public void ejbCreate() {
              > > }
              > >
              > > public void ejbRemove() {
              > > }
              > >
              > > public void setSessionContext(SessionContext ctx) {
              > > this.ctx = ctx;
              > > }
              > >
              > > public void testMethod() {
              > > }
              > > }
              > >
              > > Client code
              > > ------------
              > > public void simulateLoad()
              > > throws IOException
              > > {
              > > long totalRequestTime = 0, requestTime, requestStartTime;
              > > long totalResponseTime = 0, responseTime, responseStartTime;
              > >
              > > try {
              > > log("Opening connection to "+ url + (debug ? "?debug=true" : ""));
              > >
              > > for (int i = 1; i <= numRequests; i++) {
              > >
              > > HTTPConnection con = new HTTPConnection("localhost",7001);
              > > HTTPResponse rsp;
              > > byte data[];
              > >
              > > if ((i % 10000) == 0) {
              > > log("\nGET Request "+i+" to "+ url + (debug ? "?debug=true" :
              > > ""));
              > > }
              > >
              > > requestStartTime = System.currentTimeMillis();
              > >
              > > rsp = con.Get("/mcumanager" + (debug ? "?debug=true" : ""));
              > >
              > > requestTime = System.currentTimeMillis() - requestStartTime;
              > >
              > > responseStartTime = System.currentTimeMillis();
              > >
              > > if (rsp.getStatusCode() >= 300) {
              > > log("Received Error: "+rsp.getReasonLine());
              > > log(new String(rsp.getData()));
              > > }
              > > else
              > > data = rsp.getData();
              > >
              > > responseTime = System.currentTimeMillis() - responseStartTime;
              > >
              > > totalRequestTime += requestTime;
              > > totalResponseTime += responseTime;
              > >
              > > if ((i % 10000) == 0) {
              > > log("GET Response "+i+": "+rsp);
              > > }
              > >
              > > if ((i % 100) == 0) {
              > > log ("Avg request time :
              > > "+((float)totalRequestTime/(float)i)+"ms");
              > > log ("Avg response time :
              > > "+((float)totalResponseTime/(float)i)+"ms");
              > > }
              > > }
              > > }
              > > catch (IOException ioe) {
              > > log(ioe.toString());
              > > ioe.printStackTrace();
              > > }
              > > catch (ModuleException me) {
              > > log("Error handling request: " + me.getMessage());
              > > me.printStackTrace();
              > > }
              > > }
              > >
              > >
              > >
              > >
              > >
              >
              >
              

Maybe you are looking for

  • After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

    After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

  • How to stop GPS auto update on C6

    hi everybody, I have nokia C6. My problem is that its downloading all the time some GPS updates which cost me a lot MB to pay. every day is downloading 12 till 20 hours non stop. My battery is dieing every day becouse of this. Please help, how to sto

  • Problem with the OS

    post updating and Ilife install some of my apps isn't working so well for example a flash application named "yousendit" doesn't open just show like it is open but nothing happens and adobe premiere CS5 stops accepting psd files and some other problem

  • Mac mini, mybookwd, two ipods

    I and my son both have user accounts on the mac mini. We both have our own libraries on itunes and purchase from the same itunes account (have different libraries tho). I am trying to move our collections to the mybook external hd. First I copied his

  • Combining albums in iTunes

    I loaded an album from a cd. Instead of showing it as one album, there are several albums because of a number of performers that were on the album. Can I combine all of these songs into one album?