X

Shay Shmeltzer's Oracle Development Tools Tips

  • March 29, 2006

Is your JDeveloper Slow? - It shouldn't be!

Shay Shmeltzer
Director of Product Management - Oracle

One of the interesting aspects of the theory of relativity says that sometime time can be viewed differently by two people (the twin paradox). From time to time we get this post on OTN where someone is complaining that JDeveloper is slow on their machine. But what do you mean slow, can you give more specific information about what is slow and how much time it takes. Sometimes it is just a matter of opinion "things might look slow to you but fast to me", but sometimes there is something wrong and you can fix it.

So here are some tips I gathered over time on improving performance - and feel free to add your own in the comments.

 Update Dec 2016 - This blog entry was written back in the 10.1.3 days of JDeveloper - but it still gets quite a lot of visitors so thought I share a few more up-to-date tips: JDeveloper's default memory settings are aiming to minimize memory consumption - but today's machine have much more memory - you should evaluate them and update them. Also there are various flags to Java that can help with better memory usage. Here are several blog entires that have details specific to JDeveloper - BexAngelo, Wesley. Also, we still see some anti-viruses which are doing "live scans" that slow JDeveloper loading classes - so try and see if temporarily disabling your antivirus helps. Using newer JDeveloper versions and JDK also helps - so if you are on an old version consider upgrading.

1. Get a better machine


If you try to run the studio edition of JDeveloper on a 256MB machine - you are going to have a lot of time to drink coffee. I know Bill Gates once said that all you'll need are 640kb - but things change. (also see points 6 and 8)

2. Are you running on battery power?


If you are you might be running into a nasty Swing bug that effects JDeveloper. See this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095398

The workaround is to add an entry into your jdev.conf file [jdev-root]jdevbin

AddVMOption -Dsun.java2d.ddoffscreen=false

3. Is your code insight slow?


Many people are not aware that you can actually set the delay time for the code insight in JDeveloper. It is set to 1second by default and to many people this seems slow.

So go into tools->preferences->code editor->code insight and set it to something smaller.

4. Having delays switching back to JDeveloper from other applications?


Windows probably swap JDeveloper out of your memory. Gerard Davison's KeepResident extension can eliminate this.

See: http://www.orablogs.com/gdavison/archives/001659.html

5. JDeveloper have picks of consuming 100% CPU


We had some people who had this problem when they installed the memory monitor extension to JDeveloper. Removing this extension solved this problem.

6. Do you really need all those features?


Check if you are really using all the features that JDeveloper offers. If you are just doing Java/XML coding without all the visual editors - try the Java edition of JDeveloper. Less features but much lighter. Even if you do need to use the J2EE or Studio option - you might want to go into tools->preferences->extensions and disable extensions that you don't need.

7. JDeveloper gets resource hungry after several J2EE apps tests?


Try stopping the embedded OC4J (Run->Terminate from the menu). This will clean up some memory and it will start again on your next run.

8Eliminate DirectDraw


Another Java option set-up that solved the issue for some is:

AddVMOption -Dsun.java2d.noddraw=true

That's it for now - let me know if you have any other tips and I'll try and add tips as I get them.

========== For those who are too lazy to read the comments ===


Brian Duff Said:


8) You can also tweak JDeveloper to use less memory by altering the maximum memory VM parameter. JDev is optimized for 1GB by default, and will use as much memory as it can (up to 512MB) for caching. If you have less than 1GB, this makes the product swap a lot. See here for details on tweaking this.



9) Anti Viruses - some of them have been known to slow JDeveloper.

Chris Muir writes on this with a bit more details.

10) Sandra Muller have a couple of tips on the JHeadstart blog.

Join the discussion

Comments ( 27 )
  • Brian Duff Wednesday, March 29, 2006
    You can also tweak JDeveloper to use less memory by altering the maximum memory VM parameter. JDev is optimized for 1GB by default, and will use as much memory as it can (up to 512MB) for caching. If you have less than 1GB, this makes the product swap a lot. See http://www.orablogs.com/duffblog/archives/001437.html for details on tweaking this.
    Also, if you want to get really fast, you can always do this:
    http://www.orablogs.com/duffblog/archives/000895.html
    :)
    Brian
  • Afshin Tuesday, May 2, 2006
    Hi
    I run the last version of jdeveloper on my sony vaio VGN-FS660 laptop with fedora core 5 os. I've worked on an web application project which has done on ADF. I had no problem for deploying and runnig on tomcat or running oc4j in normal mode but in debugging mode it's extremly slow. Even when I break somewhere in my code and I press F8 to trace my code it takes more than 10 seconds to move forward and it takes more than 1.5 minutes to run the server.
    I don't know what can I do, but I've read many articles in oracle developer forums but unfortunatelly I could not find the solution.
    B.S. I have not installed any plug in in my jdeveloper.
    Thank you
  • Jon Wetherbee Wednesday, May 3, 2006
    Another way to avoid delays when switching back to JDev from another app is to turn off the automatic file scan that is enabled by default.
    To do this, go to:
    Tools | Preferences | Environment
    and de-select:
    'Automatically Reload Externally Modified Files'
    and/or:
    'Verify Project Contents Automatically on Restart'
  • Xingsheng Qian Friday, May 5, 2006
    Hi there,
    I actually have a question regrding the remote debugging. Can I remote debug an application deployed on Oracle 10g Application Server?
    Where Can I get more info about this?
    Thanks!
  • Shay Shmeltzer Friday, May 5, 2006
    Qian,
    You should post these type of questions on the JDeveloper forum on OTN.
    And before you do you might want to try googling for the answer.
    For example googling for "remote debug oc4j jdeveloper" resulted in this link:
    http://www.orablogs.com/shay/archives/001476.html
  • Xingsheng Qian Friday, May 5, 2006
    Hi Shay,
    Thanks for your advice.
    I googled similar thing like "remote debug in JDeveloper" and aslo got your blog. But my question is to remote debug the Oracle 10g AS which you don't even start by "java jar oc4j.jar".
    I will post the questions on the JDEV forum.
  • Brenden Anstey Tuesday, May 23, 2006
    Hi Shay,
    any points on optimising the embedded OC4J? I have 1 Gig of physical memory and with JDev, the embedded OC4J and XE running 1 GB is not enough.
    I find that the OC4J uses about 300 Meg of physical memory (running a small ADF Faces/BC project).
    cheers,
    Brenden
  • Shay Shmeltzer Wednesday, May 24, 2006
    Brenden,
    How big is your application?
    What I did find is that if you run your application several times the memory consumption of the embedded OC4J just grows. The solution is to use the run->terminate to stop the embedded OC4J instance and then run again. This seems to clear the memory consumed.
  • Luc Bors Wednesday, December 6, 2006
    Gerard Davison's KeepResident works perfect for 10.1.3.0.
    Now I have problems with swap of death in 10.3.1.1. I really need Gerard Davison's KeepResident. It is posted as update in Jdeveloper, but the URL is not available.
    Please help
  • Shay Shmeltzer Wednesday, December 6, 2006
    The file for this extension is hosted on orablogs.com and the site was down yesterday I think it is back up today
    http://www.orablogs.com/gdavison/archives/addin/jdev-keep-resident-bundle-1.0.zip
  • Anthony Yulo Monday, October 6, 2008
    i came across this blog:
    http://java2go.blogspot.com/2007/06/jdeveloper-tips-2-fine-tuning.html
    this was very helpful to our dev team! :D
  • shay Friday, June 12, 2009
    One more problem specific to the first versions of JDeveloper 11g was reported when people were using massive resource bundles and JDeveloper would end up consuming memory - this is going to be fixed in JDeveloper 11gR1 - but in the meantime you might want to look at these workarounds: http://developers2developers.blogspot.com/
  • Sathia Thursday, February 4, 2010
    Hats off for this useful information
  • MattC Wednesday, January 25, 2012

    I have recently begun experiencing #5, "JDeveloper have picks of consuming 100% CPU," on JDev 11.1.1.5 on OS X 10.6.8. After a half day's work or so, JDeveloper begins running at 100+%, sometimes up to 300% CPU usage. The CPU particularly spikes when focusing or inputting into the IDE. After about five minutes of this, JDev will become non-responsive, requiring a Force Quit. My memory monitor extension is off. Curious if you have experienced anything like this on OS X. My machine is a 2.53 MHz i5 with 8GB of 1067 DDR3.


  • MattC Wednesday, January 25, 2012

    One preference change I find helpful to speed up opening of files is to go to Preferences > File Types and change the default editors of JSPX and JSFF files, for example, from Design to Source.


  • Asim Basit Saturday, May 12, 2012

    Thanks for the great tips.


  • Tokando Thursday, February 21, 2013

    All my ADF Application are slow for the clients iam not talking about developing iam talking about the pages for the clients ...

    if you have link to real Application developed by ADF please give me this link to check the performance of the Application .

    and if you have Advice about what is reason of the slow pages .

    Thank You .


  • guest Thursday, February 21, 2013

    All my ADF Application are slow for the clients iam not talking about developing iam talking about the pages for the clients ...

    if you have link to real Application developed by ADF please give me this link to check the performance of the Application .

    and if you have Advice about what is reason of the slow pages .

    Thank You .


  • Shay Thursday, February 21, 2013

    guest - There are a lot of ways to tune an ADF application to run faster.

    The first thing to do is figure out what is slow - is it DB access, is it wrong configuration of the middletier? etc.

    Here is a good list to get you started tuning your application:

    http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e15524/adv_performance.htm#BBADGJHB


  • Don Wednesday, May 22, 2013

    If your debugger is slow when stepping through code, try this

    http://dkleppinger.blogspot.com/2013/03/debugging-tip.html


  • Shiva Tuesday, February 10, 2015

    Hi,

    My Jdev IDE, Hangs everytime when i go to Application Module, Data Model Tab, Any Solutions for this.?

    We're not able to proceed further because of this issue.


  • Shay Monday, February 16, 2015

    Shiva - seems like you have a specific configuration issue - I would recommend to post more details on the OTN JDeveloper discussion forum and to work with support to figure out what exactly causes the issue.


  • Rakesh Friday, March 11, 2016

    Thanks very much. After having wasted a lot of time, this blog has helped me a lot.

    Points (2) and (8) helped me.


  • guest Wednesday, August 31, 2016

    My laptop core i7 memory 8GB also when I run Jdeveloper it consumed most of CPU some time more than 85%


  • Shay Shmeltzer Saturday, September 17, 2016

    guest - definitely not a normal behavior. Check out things like anti-virus on your machine that might be delaying JDev class loading, so try disabling it.


  • guest-Haytham Monday, September 19, 2016

    Thanks Shay for your reply


  • guest Thursday, November 24, 2016

    Hi All,

    If your JDeveloper is very slow then try below option.

    Open Jdeveloper path: $/jdeveloper/jdev/bin/jdev.conf file and find below option

    AddVMOption -Dsun.java2d.noddraw=true

    Here remove comments # if it is commented then save and and close Jdeveloper and open and see

    Thanks & Regards,

    Balakrishna


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha