WTK Memory profiler crashes

Hi,
I am trying to profile my application using the wtk's memory profiler. The apllication that iam trying to load is pretty huge. When i try to do this, the memory profiler (zayit.exe) crashes.
The stack trace is as follows
java.lang.IndexOutOfBoundsException
     at java.io.BufferedInputStream.read(BufferedInputStream.java:272)
     at java.io.DataInputStream.read(DataInputStream.java:224)
     at com.sun.kvem.memorymon.MemoryListener.run(Unknown Source)
Any help would be of great use.
Thanks,
Suresh

----------------From Flex Builder
Help---------------------------------------------------
One approach to identifying a memory leak is to first find a
discrete set of steps that you can do over and over again with your
application, where memory usage continues to grow. It is important
to do that set of steps at least once in your application before
taking the initial memory snapshot so that any cached objects or
other instances are included in that snapshot.
Then you perform that set of steps in your application a
particular number of times -- 3, 7, or some other prime number --
and take the second memory snapshot to compare with the initial
snapshot. In the Find Loitering Objects view, you might find
loitering objects that have a multiple of 3 or 7 instances. Those
objects are probably leaked objects. You double-click the classes
to see the stack traces for each of the instances.
Another approach is to repeat the sequence of steps over a
long period of time and wait until the memory usage reaches a
maximum. If it does not increase after that, there is no memory
leak for that set of steps.
check your app following these instructions above.

Similar Messages

  • Crash when starting a performanc​e/memory profile

    I'm having a catastrophic crash when I hit the 'Start' button in the Profile -> Performance and Memory... dialog. There is no error message whatsoever, and when I restart Labview, it only asks me about files to recover, it doesn't tell me where it crashed (i.e. somefile.cpp line ###). Well, it might have told me once, but now it doesn't, so unless there is a log of these things somewhere, I can't say much more.
    I'm using Labview 2009, and I'm having the exact same issue on at least 2 machines which are fairly different (Win XP 32 bit vs Win7 64 bit (with Labview 32 bit)).
    The application is pretty large (~1500 vi's), so it's kind of hard to tell what is making it crash.
    The problem can be replicated in different ways:
    1) Load main VI which loads all the VI's in memory
    2) Start Performance/Memory profile *crash*
    1) Load VI
    2) Start VI (runs in a loop)
    3) Start Performance/Memory profile while it runs *crash*
    1) Start Performance/Memory profile
    2) Some NI VI's show up in the list with '0' time everywhere
    3) Load VI
    4) Execute VI
    5) Stop execution of VI *crash*
    Any clues? Is there a log somewhere that could help me/you find the issue?
    I could spend all day trying to load different parts of the project and look for problems, but I have no idea what to look for.
    Last Friday I had successfully profiled what I wanted to, then I had another crash... Oh I remember now... I did a 'Search' in my project, looked for a particular string, and it crashed after a while in the middle of the search. Since then I was unable to use the profile tool. Could it be some data corruption? We use SourceSafe... so I wouldn't be surprised if it gave me a corrupted file If so, how could I find it?
    Thank you

    Hey Samapico,
    I actually found an incident like yours involving the performance and memory tool crashing when used for specific VIs which were very large. How big (in terms of filesize) is your VI?
    R&D found this issue in LV 2009 and fixed it in 2010 under Corrective Action Request 215410. 
    Is there any way you could try and test your issue out on a machine with LV 2010?
    <Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 

  • Starting memory profile in Library causes LV to crash

    Hello!
    When I'm working on a library with many classes labview crashes sometimes. Today I was able to trigger the crash manually.... Even on an empty library, if I try to start the memory profiling tool, LV crashes..
    #Date: Mi, 23. Jan 2013 10:02:58
    #OSName: Windows 7 Enterprise Service Pack 1
    #OSVers: 6.1
    #OSBuild: 7601
    #AppName: LabVIEW
    #Version: 12.0f3 32-bit
    #AppKind: FDS
    #AppModDate: 10/04/2012 15:12 GMT
    #LabVIEW Base Address: 0x00400000
    <DEBUG_OUTPUT>
    23.01.2013 10:03:16.550
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash 0x0: Crash caught by NIER
    minidump id: 381ce9c1-0956-48de-86cf-0ac5f02c36cd
    ExceptionCode: 0xC0000005
    </DEBUG_OUTPUT>
    0x01AF1179 - LabVIEW <unknown> + 0
    0x01AF1688 - LabVIEW <unknown> + 0
    0x7C37FDB4 - MSVCR71 <unknown> + 0
    0x77B574DF - ntdll <unknown> + 0
    0x77B19EC5 - ntdll <unknown> + 0
    0x00000000 - <unknown> <unknown> + 0
    Is it a bug?

    Dear Customer,
    I could reproduce this crash on LV2012 and also on LV2011.
    So it seems to be a Bug and I'm going to write an CAR to R&D so it can be fixed as soon as possible.
    Thank you for your cooperation.
    Regards,
    Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG

  • SDK 3.0 memory profiler

    I can't seem to be able to save or load the SDK memory profiler data, I run the application via eclipse, on the cldcPhone1 I get connection, pause the application when ever I want, then follow the instructions on the help page of the SDK, but no Work.
    any help would be greatly appreciated, it got me stuck I have to follow up on a memory usage. the WTK memory monitor is not helpful enough since it only keeps the size of the object and not the size of its content, or something like that.

    I was able to deploy to my iphone by following the instructions here
    http://www.loonsoft.com/posts/21
    Note: it is {} and not () ${SDKROOT}/ResourceRules.plist
    I was getting the below error during codesign & I thought that the above "graying out" of the dev provisioning profile in the "Code Signing Identity" was causing it.
    "object file format invalid or unsuitable"
    Turns out it does not prevent me from deploying to my iphone after I fixed the SDKROOT. I still have the dev provisioning profile grayed out and would be interested to know how to solve this problem "cleanly" even though it doesn't seem to have any immediate downside.. fingers crossed for distribution signing.

  • Ever increaing RAM usage of flashPlayer not shown in memory profiler of FlashBuilder

    I have a flash application created with Flex in FlashBuilder which uses the Stage3D-API (Away3D-Library is used).
    In this flash application 3D-objects are created and added to scene and they are also removed/disposed again, and then they are created/added again.
    Performing these scene altering operations the RAM usage of the flashPlayer process (monitored in Windows7-Taskmanager) steadily increases by big amounts (lets say 20MB).
    On the other hand the Memory-profiler does not show any such increases at all. Regarding to memory profiler the application still uses bascially the same amount of memory (the line stays flat).
    There are some objects marked as loitering, but  they donet seem to build-up. And their total amount is (if at all) 0,3MB.
    After a while of 3d-scene altering operations (adding, removeing objects) the application/flash-player crashes, most possibly to not being able to allocate more RAM (Taskmanager shows RAM almost completely used up by flashPlayer-process). The application does not exit due to 3d-resource related limits like vertex-buffers, but here are now my questions:
    Questions:
    a) Are there areas of RAM-usages a (stage-3d) application uses up, which can not be profiled by FlashBuilder?
    For exmaple: Is it possible that some objects (maybe stage-3d related) that hold onto some areas of memory/RAM which do not show up in memory profiler?
    c) Is the versioning of used components (flashPlayer, FlashBuilder or used Flex-SDK) in an way relevant when memory profiling an application? It it possible that i dont properly see the used memory by my application because i might have old version of involved components?
    d) Do you have any other idea what might be the cause here for increased RAM-usage or why it does not show up in memory profiler? I mean at least i expected to see it in memory profiler.
    e) Generally i understand that the flashPlayer allocates RAM as it sees fit, and that its not the same amount of memory my application currently uses. But if my application seems not to use/demand any more memory (at least thats what the profiler tells me) i dont understand why flashPlayer allocates more and more memory - even to the point of crashing. Any ideas here?

    Long shot but...
    When I had an issue with Flash Builder 4.6 PC mobile in regards to the java heap problem I discovered myself that my project had content which apparently blew out the FB threshold. In particular my mp3 files (3 units) were of too much high quality (360 kbps), I had to scale down the files to 128 kbps. This is an extreme shame.
    I am currently running these threshold tests to see if my mp3s can be of better kbps. I did hack my CONFIG scripts in the sdk folders in the installation location but that did not solve my issue. LESSON LEARNED: FB apparently employs the web logic where reduced files equal better performance.

  • Unable to run Memory profiling, help please

    Hi there,
    I installed the lastest version of JDeveloper 10 and created a very simple project(only have one class with Main()method) for testing purpose.
    I configure the Profiler in Project Properties page, setting the class as included instance, however, all those profiling menu items(e.g.: Memory Profile...) are greyed out and I am unable to run memory profiling.
    I wonder if the functions are available for the free-downloaed version of JDeveloper, or is there something wrong with my setting?
    Your help is highly appreciated.

    Make sure you are positioned on the class in the application navigator before going to the "run" menu option.
    Also does it work if you don't change anything in the project properties?
    Here is what I did - created a new project with a simple hello class. And I didn't had any problems profiling it.
    There is no function limitation on the version you downloaded.
    Here is the class I tried:
    public class Class1
    public Class1()
    public static void main(String[] args)
    Class1 class1 = new Class1();
    System.out.println("hello");
    }

  • Is there a way to fix the Remote Desktop Connection Manager memory usage crashes?

    I'm using RDCMan and it has been using a lot of memory and crashing.  With 12 connections it uses 1,548,976 K of memory and crashes with an "Unhandled exception" "Not enough storage is available to process this command. (Exception from
    HRESULT: 0x80070008)."  I love this program and want to know if there's a way to fix this on my end.  It seems like other people are not having this issue.  I'm running a fresh install of Win7 Ent.  I have .NET 3.51 and 4 installed.
     Do I need to installed .NET 2.0?
    Here is the info from the crash:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x80070008): Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)
       at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
       at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
       at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
       at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
       at System.Windows.Forms.AxHost.CreateInstance()
       at System.Windows.Forms.AxHost.GetOcxCreate()
       at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
       at System.Windows.Forms.AxHost.CreateHandle()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.AxHost.EndInit()
       at RDCMan.RdpClient7..ctor(RdpClient parent, MainForm form)
       at RDCMan.RdpClient..ctor(MainForm form)
       at RDCMan.RdpClient.AllocClient(Server server, MainForm form)
       at RDCMan.Server.InitClient()
       at RDCMan.Server.ConnectAs(ILogonCredentials logonCredentials)
       at RDCMan.Server.Connect()
       at RDCMan.ServerTree.OnDoubleClick(EventArgs e)
       at System.Windows.Forms.TreeView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    RDCMan
        Assembly Version: 2.2.2.426
        Win32 Version: 2.2.2.426
        CodeBase: file:///C:/Program%20Files%20(x86)/Remote%20Desktop%20Connection%20Manager/RDCMan.exe
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Deployment
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    AxMSTSCLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Remote%20Desktop%20Connection%20Manager/AxMSTSCLib.DLL
    MSTSCLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Remote%20Desktop%20Connection%20Manager/MSTSCLib.DLL
    afvxqrqi
        Assembly Version: 2.0.0.0
        Win32 Version: 
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    I am experiencing the same sort of problem with RDCman after my laptop installed Windows updates last weekend so it is probably caused by a recent .net framework update, not sure which one it is yet, has to be one of last weeks updates for sure.
    See below for the detail log:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at RDCMan.RdcSettingsProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection values)
       at System.Configuration.SettingsBase.SaveCore()
       at System.Configuration.SettingsBase.Save()
       at System.Configuration.ApplicationSettingsBase.Save()
       at RDCMan.Preferences.Save()
       at RDCMan.MainForm.AutoSaveTimerTickHandler(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    RDCMan
        Assembly Version: 2.2.2.426
        Win32 Version: 2.2.2.426
        CodeBase: file:///C:/Program%20Files/Remote%20Desktop%20Connection%20Manager/RDCMan.exe
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Deployment
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    AxMSTSCLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/Remote%20Desktop%20Connection%20Manager/AxMSTSCLib.DLL
    MSTSCLib
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/Remote%20Desktop%20Connection%20Manager/MSTSCLib.DLL
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

  • External Hard Drive won't load, Disk Utility and System Profiler crashes,

    I've had the WD 1TB Passport for Mac for about a year now and as of this afternoon, my MacBook Pro stopped recognizing it. It's encrypted so when I plugged it in, my computer asked me for my password, but then it said there was an error and wouldn't mount. After restarting the computer, the password prompt for my external drive didn't even pop up. I can hear the hard drive spinning and the light flashes for a good 30 seconds before going solid. I have tested my USB ports with flash drives and they are reading them just fine. I tried to run  Disk Utility but it goes into the never-ending loading mode. So then I go to the "About my Mac" page and clicked on storage, and the profiler crashed (never-ending loading). Can anyone help me? It was working just fine up until today. I even tried different Micro USB chords on it. This drive is incredibly important to me and I would appreciate not having to erase anything from it (kinda defeats the purpose of backing up a computer if the external hard drive is the one needing the backup).
    I have a
    Mid 2010 13in MacBook Pro
    OS X 10.8.2
    1TB WD Passport for Mac

    Solution may be found if you search in the "More Like This" section over in the right column. 

  • Jdev11g CPU profile and Memory Profile doesn't work for Mac

    I'm running Jdev11g on Mac OSX 10.5.5,
    CPU Profile and Memory Profile doesn't work. I got following message:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevjavabase11110/jdeveloper/jdev/lib/profiler16.so
    The file actually is there. I don't understand why they looking for .so file, it supposed to be mapped as .jnilib on Mac.
    This is broken on TP4 as well.

    I'm still seeing this issue. Here is what I get:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client "-agentpath:/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so=port=60950,jarpath=/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler-agent.jar,enable=t,depth=1000,startup=connect,time" -classpath /Users/kamleshnanda/jdeveloper/mywork/MyJavaApplication/Project1/classes project1.Class1 Hello
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so
    Process exited with exit code 1.
    I'm using the following build:
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Java Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    CVS Version (External)     (CVS) 1.12.13 (client/server)
    Java(TM) Platform     1.6.0_17
    Oracle IDE     11.1.1.2.36.55.36
    PMD     JDeveloper Extension 4.2.5.3.0
    Team Productivity Center     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    Here are the JVM properties:
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_17-b04-248-10M3025
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.vendor     Apple Inc.
    java.vendor.url     http://www.apple.com/
    java.vendor.url.bug     http://bugreport.apple.com/
    java.version     1.6.0_17
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Apple Inc.
    java.vm.version     14.3-b01-101
    Here is the OS information:
    os.arch     x86_64
    os.name     Mac OS X
    os.version     10.6.2

  • TP4[BUG]: Memory profile and CPU profile doesn't work for MAC

    I'm using Mac OSX 10.5.4.
    When I try to use Memory profile and CPU profile, I got following error:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevstudiobase1111/jdev/lib/profiler15.so
    But the file actually exists.

    My MAC version is OSX 10.5.4.
    I don't have a stacktrace. It just fails silently.
    You can easily reproduce this bug by reformat a readonly file.
    Here is the code I reverse engineered from oracle.jdeveloper.refactoring.util.Util.java:
    public static boolean setReadOnly(java.net.URL url, boolean readOnly)
    boolean ret = false;
    java.lang.String cmdarray[] = null;
    java.lang.String platformPathName = oracle.ide.net.URLFileSystem.getPlatformPathName(url);
    java.lang.String osName = java.lang.System.getProperty("os.name", "");
    if(osName.startsWith("Windows"))
    cmdarray = (new java.lang.String[] {
    "ATTRIB", readOnly ? "+R" : "-R", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    else
    if(platformPathName.equalsIgnoreCase("Linux"))
    cmdarray = (new java.lang.String[] {
    "chmod", readOnly ? "u-w" : "u+w", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    if(cmdarray != null)
    java.lang.Runtime runtime = java.lang.Runtime.getRuntime();
    try
    java.lang.Process process = runtime.exec(cmdarray);
    if(process.waitFor() == 0)
    ret = (new File(platformPathName)).canWrite();
    if(ret)
    oracle.ide.model.Node node = oracle.ide.model.NodeFactory.find(url);
    if(node instanceof oracle.ide.model.TextNode)
    oracle.ide.model.TextNode textNode = (oracle.ide.model.TextNode)node;
    textNode.isReadOnly();
    catch(java.io.IOException e)
    e.printStackTrace();
    catch(java.lang.InterruptedException e)
    e.printStackTrace();
    return ret;
    }

  • Memory profiler disabled in JDeveloper 10.1.3.3.0.4157?

    Hi,
    I'm using JDeveloper 10.1.3.3.0.4157, and it seems that the memory profile is disabled in this version. Or isn't it? How do I enable it?
    Thanks in advance!

    Make sure your project is using the OJVM.
    See: http://blogs.oracle.com/shay/2007/02/are_you_getting_the_most_out_o.html

  • Memory Profiler in Jdeveloper 10g

    Is there any tutorial/article on how to use the memory profiler in jdeveloper 10.1.3.4?

    I have the same problem. I am using ADF with JClient, locally deployed.
    And I have also noticed that after approx 5 or 6 commits (i.e. when I insert a new record, enters its values and then commits, and repeats these steps 5-6 times) the memory consumption is radically increased and finally the computer is running out of memory.
    I really hope that these problems will disappear in the production release of JDev 10g.

  • System Profiler crashes when I try to save.

    System Profiler crashes when I try to save. It starts to save it then crashes and I can't view the report.

    Hi Lindsay, and a warm welcome to the forums!
    Could be many things, we should start with this for safety...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    Try deleting this file & reboot...
    /Users/YourUserName/Library/Preferences/com.apple.SystemProfiler.plist
    Does it work now?

  • Memory Profiling OPMN changes

    When I add the -agentpath option specified in the JDeveloper document to configure the remote memory profiling in Oracle 10g Application server's opmn.xml I get following error "Unrecognized option -agentpath..." and the server does not start.
    Has anyone successfully configured the application server to perform remote profiling?

    Thank you, shgoel, you're right.
    We replaced the default JDK 1.4 with JDK 1.5 (in the directory D:\Ora10gas\as\jdk\ to be precise)
    We moved the profiler DLL to the JDK bin and used the -agentlib option instead of the -agentpath (not sure if this change was significant, though)
    To the Java start-parameters in opmn.xml we added the profiling port and a pointer to the profiler-agent.jar.
    The resulting Java start parameters where:
    -server -Xrs -Xmx512m
    -agentlib:profiler15=port=4627,jarpath=D:\jdev\lib\profiler-agent.jar,enable=m
    -Dmic.system.home=d:\mic_home
    -Dmic.j2ee.home=D:\Ora10gas\as\j2ee\OC4J_MIC\applications\mic
    With these settings we where able to connect remotely with JDevelopers memory profiler and resolve a memory leak.
    Thanks
    Niels Erik

  • Memory profile for netbeans?

    Javameisters,
    I am just now completing my first java application, so I apologize if this question is a bit elementary. The application is intended for commercial distribution, and before releasing it for this purpose I'd like to check it with a memory profiler, to be sure there are no memory leaks. I wrote it with Netbeans. It appears that this environment does not have a built-in profiler (though Eclipse apparently does, and I'll use that next time). What profiler can be recommended for use with Netbeans? I tried Optimizeit! briefly some time ago and it seemed to do what I want, but before shelling out the bucks for that I'd like to know if it is really the best choice (and if there are any free alternatives).
    I should mention its a J2SE app.
    Thanks much,
    Matthew Fleming

    For a profiler to be any good you need to have some test cases. If all you wnt is to determine if you have a memory leak, look at freeMemory() and totalMemory()          long Used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); If these are not changing significantly, you don't have a problem. If you need to know where your problem is you need a profiler. I have not seen an IDE with a bultin profiler so if you know how to use the eclipse profiler, let me know.

Maybe you are looking for