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.

Similar Messages

  • 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 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

  • Remote Memory Profiling

    Can anyone tell me how to set up remote memory profiling in TP4? The existing instructions for 10g do not address remote profiling. At one point I somehow found documentation on a profiling agent that is started from the command line but I cannot find that again. Anyway, I really need to profile a Tomcat application server, and it would be nice if TP4 could do the job. Maybe this type of thing would even convince my colleagues that JDeveloper is better than Eclipse or IDEA.
    Thanks In Advance, Keith

    'Cmon Team JDeveloper - in a matter of a few hours, I was able to download and setup NetBeans and start remote profiling my JDeveloper-developed web app on Tomcat. Surely somebody knows how to do this with JDeveloper!?
    I'm a long-time JDeveloper user and a very vocal proponent of the tool - I pains me to have to use another tool to do what JDeveloper should clearly be able to do. Heck, I'm willing to help document the process if someone can just help get me going on this.
    Jim

  • How to do memory profiling remotely???

    Hi,
    We are using JDeveloper 10g (10.1.2.1.0) and Oracle Application Server 10g (10.1.2.0.2) to deploy our web application, its running on a Solaris OS. We would like to know how to make a remote memory profiling for this configuration. JDeveloper help is very ambiguous, and very short.
    Anybody could help us a little bit with this? How we can configure OC4J JVM to attend remote memory profiling requests? How we can connect and run the JDeveloper memory profiling extension over this OC4J JVM?....
    Thanks in advanced.

    Nice to read it ;-)
    Any other option to profile memory remotely on Solaris and OC4J JVM? Maybe any JDeveloper plugging or any standalone recommendable product? Or I could thinking in cutting my veins already?
    Thanks for your answer.

  • 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");
    }

  • 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;
    }

  • Jdeveloper 10g UI not starting.

    Hi All,
    I'm a new user of jdeveloper and using 10g.
    This is the problem which is happening everytime I start it second time after fresh installation. It works fine for the first time and shows problem and never loads in the subsequent attempts.
    I have installed it in E directory following is the path of .exe file which I run E:\Jdev10g\jdev\bin\jdev.exe
    Following is the logs which I have got from command window---
    java.lang.NullPointerException
    at javax.swing.border.EmptyBorder.<init>(EmptyBorder.java:54)
    at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRendere
    r.getTableCellRendererComponent(WindowsTableHeaderUI.java:63)
    at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTabl
    eHeaderUI.java:394)
    at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(BasicTableH
    eaderUI.java:428)
    at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(BasicTable
    HeaderUI.java:454)
    at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTable
    HeaderUI.java:485)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
    at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:75
    at java.awt.Container.preferredSize(Container.java:1178)
    at java.awt.Container.getPreferredSize(Container.java:1162)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)
    at javax.swing.ScrollPaneLayout.preferredLayoutSize(ScrollPaneLayout.jav
    a:507)
    at java.awt.Container.preferredSize(Container.java:1178)
    at java.awt.Container.getPreferredSize(Container.java:1162)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)
    at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:572)
    at java.awt.Container.preferredSize(Container.java:1178)
    at java.awt.Container.getPreferredSize(Container.java:1162)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)
    at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
    getPreferredSizeOfComponent(BasicSplitPaneUI.java:1770)
    at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
    getPreferredSizes(BasicSplitPaneUI.java:2003)
    at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
    resetToPreferredSizes(BasicSplitPaneUI.java:2040)
    at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
    layoutContainer(BasicSplitPaneUI.java:1470)
    at java.awt.Container.layout(Container.java:1020)
    at java.awt.Container.doLayout(Container.java:1010)
    at java.awt.Container.validateTree(Container.java:1092)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validate(Container.java:1067)
    at java.awt.Window.show(Window.java:461)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at oracle.ideimpl.MainWindowImpl$11.run(MainWindowImpl.java:718)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    System configuration is "Intel core-2-duo" with 2 gb memory.
    after this it hangs and never loads...please suggest solution for this..I'm quite fed up of this.

    See if these old posts help-
    cannot start JDeveloper 10g: nullpointer exception
    http://programming.itags.org/development-tools/17231/

  • JDeveloper 10g (10.1.3) 10.1.3 Developer Preview: can't start embedded oc4j

    With Oracle JDeveloper 10g (10.1.3) Developer Preview, I tried to make a simple jsp page as in this tutorial:
    http://www.oracle.com/technology/obe/obe9051jdev/visual_jsp/intro_to_visual_jsp.htm
    I only added some text then right-clicked file, selected Run. It didn't work:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config>
    /usr/java/j2sdk1.4.2/bin/java -client -classpath /my/home/data/opt/jdeveloper/j2ee/home/oc4j.jar:/my/home/data/opt/jdeveloper/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/server.xml
    [waiting for the server to complete its initialization...]
    05/04/08 09:02:24 Node started with id=127765687050882
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/dms0.war... done.
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_web.war... done.
    Apr 8, 2005 9:02:29 AM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/datasources/datasources/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/datasources...
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/OracleASjms/OracleASjms/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/OracleASjms...
    05/04/08 09:02:42 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/admin_ejb.jar...
    05/04/08 09:02:42 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/04/08 09:02:45 Auto-deploying - compiling and loading...
    05/04/08 09:02:45 done.
    05/04/08 09:02:46 Error initializing server: Error initializing ejb-module; Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    05/04/08 09:02:47 Fatal error: server exiting
    Process exited with exit code 1.
    For a simple stand-alone java application, it worked.
    I have sun jdk 1.4.2 on Fedora Core 3.
    Don't know if there are similar bug reports, I searched this forum for "10.1.3" but the search page stays like that for ~2 minutes, then stops without showing anything.

    Hello Frank,
    Thank you for your suggestion. I tried that and I got the same error. Looked more careful at it:
    Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    I tried to execute it manually:
    $ l /my/home/data/opt/jdeveloper/jdev/bin/ojc
    -rw-rw-r-- 1 marius marius 1.9k Dec 2 19:20 /my/home/data/opt/jdeveloper/jdev/bin/ojc
    $ /my/home/data/opt/jdeveloper/jdev/bin/ojc
    bash: /my/home/data/opt/jdeveloper/jdev/bin/ojc: Permission denied
    Did
    $ chmod a+x /my/home/data/opt/jdeveloper/jdev/bin/ojc
    which solved the execution. Now Hello word works.
    I got jdeveloper as a .zip archive, which doesn't keep unix permissions. The Linux distribution should be in .tgz archive, it would have avoided this problem.
    Thanks!

  • How to create .ear file in JDeveloper 10g

    Hi, I am new to Jdeveloper. I am using JDeveloper 10g. I have created one project abc.jws under which there are five .jpr folders(DTO.jpr,persistence.jpr,service.jpr,util.jpr,ViewController.jpr). I want to create .ear file for the whole project so that it can be directly put in the production environment. When I right click on the abc.jws and select New, the EAR option under deployment profiles is disabled. I would highly appreciate if someone can help me on this.
    Thanks.

    Hi Rexy,
    See if the steps given in [this link|http://download.oracle.com/otndocs/tech/ias/portal/files/RG/OBE/deployToAppServer/lesson_Deployment.htm#t3s3] helps
    Sireesha

  • Installing JDeveloper 10g on Linux

    I am installing JDeveloper 10g base_installation on Fedora Core 2.
    I am using Sun J2SDK 1.4.2_05 which is work well with other applications. I have P4 with 512MB of Memory.
    I fellowed the intallation procedure in http://www.oracle.com/technology/products/jdev/htdocs/9.0.5.2/install.html#installnonwindows
    when i start jdev (even when i log as a root) the jdev start ok.
    But when i choose new from the short cut menue of the "Application Navigator" nothing happen.
    *the same copy works fine with Windows XP.
    Help me please!!

    For step-by-step instructions see here
    http://www.puschitz.com/InstallingOracle10g.shtml

  • Any solutions from oracle  to improve Performance in Oracle Jdeveloper 10g

    Hi ,
    We are developing ADF Applications in Oracle Jdeveloper 10g , 4 developers are working . now every one M/c Ram upgraded to 4 GB
    Still my developers are getting Performance issue , Like Java Heap memory Reached . when we saw in Task Manager Memeusage reached 450,000K
    then Jdeveloper dies and hang there . we have to do this at least 4 to 5 times everyday . thats where it taking a lots of time to
    modify a single small changes .
    What our deveoper are doing they trying to commit frequently after making a important changes in application . but sometimes developer are also
    forget in between . So wee need a solution for this if Oracle fixes this issue .
    Thanks
    KP

    Hi,
    We never had that issue with 10g (but happens in 11g), what is the project's size? I assume very big, else your environment must have something fishy, 10g is really fast and lightweight.
    Regards,
    ~ Simon

  • Memory Profiler

    getting the following error in Jdev 11.1.1.7 when tryin to memory profile my viewcontroller:
    Error occurred during initialization of VM
    Could not find agent library C:\SOA\Middleware\jdeveloper\jdev\lib\profiler_x64.dll in absolute path, with error: Can't load IA 32-bit .dll on a AMD 64-bit platform
    any ideas?

    As the error message says, you are running on a 64bit platform and the menroy profiler trys to load a 32 bit dll for the profiling. Not sure if there is one for a 64 bit platform, but this should be mentioned in the doc for the memory profiler. Check the doc for system requirements.
    Timo

  • Memory leaks in JDeveloper?

    Hi,
    I have created two entity objects for two tables in Oracle database. In windows task manager, I started watching the memory usage for "jdevw.exe". When I keep clicking back and forth on the two entity objects in the navigation window, I see that the memory usage going up with every click. I watched it going from 70MB to 130MB until I stopped clicking.
    Is this a known bug?
    Product: JDeveloper 10G (preview version build 1375)
    OS: Windows 2000 w/512MB RAM
    DB: Oracle 8.1 running on the same PC
    Hope it helps.
    Raju

    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.

Maybe you are looking for

  • Can I install Windows 7 64-bit on my mid-2007 dual quad core "Clovertown"?

    Hi all, I want dearly to install Windows 7 64-bit on my MacPro, but the only online compatibility information says bootcamp 3.1 for 64-bit works with "early 2008" Macs and not "mid-2006" Macs. I'm stuck in between, for I purchased a mid-2007 MacPro w

  • Aperture 2,0

    Hi... The only way to quit aperture 2,0 is by clicking command Q... I can´t use the red botton in the top left...

  • IOS4.0.x: I just don't understand. Please explain...

    ...how exactly the same hardware (give or take physical tolerences) loaded with exactly the same software, can run differently on everyone's phones? So many people are saying that they've lost this, lost that, this doesn't work, that doesn't work. Su

  • Use Min function in subquery

    List the names names (first and last) of customers who have ordered the item with the lowest prouct price Select CustFirstName, CustLastName From Customer Where (O.ProdNo= L.ProdNo*ProdNo) from SELECT MIN(ProdPrice) AS LowestPrice FROM Product; When

  • RE: activate icloud?

    Do I have to activate icloud on my iphone? Won't this use my data?  I do not have any other Apple products.