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

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.

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.

Comments:

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

Posted by Brian Duff on March 29, 2006 at 11:19 AM PST #

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

Posted by Afshin on May 02, 2006 at 01:52 PM PDT #

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'

Posted by Jon Wetherbee on May 03, 2006 at 08:12 AM PDT #

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!

Posted by Xingsheng Qian on May 04, 2006 at 05:36 PM PDT #

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

Posted by Shay Shmeltzer on May 05, 2006 at 04:39 AM PDT #

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.

Posted by Xingsheng Qian on May 05, 2006 at 02:03 PM PDT #

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

Posted by Brenden Anstey on May 23, 2006 at 02:13 PM PDT #

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.

Posted by Shay Shmeltzer on May 24, 2006 at 08:48 AM PDT #

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

Posted by Luc Bors on December 05, 2006 at 09:54 PM PST #

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

Posted by Shay Shmeltzer on December 06, 2006 at 03:42 AM PST #

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

Posted by Anthony Yulo on October 06, 2008 at 03:33 PM PDT #

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/

Posted by shay on June 12, 2009 at 01:16 AM PDT #

Hats off for this useful information

Posted by Sathia on February 03, 2010 at 06:31 PM PST #

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.

Posted by MattC on January 24, 2012 at 04:44 PM PST #

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.

Posted by MattC on January 25, 2012 at 08:05 AM PST #

Thanks for the great tips.

Posted by Asim Basit on May 11, 2012 at 10:22 PM PDT #

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 .

Posted by Tokando on February 21, 2013 at 03:33 AM PST #

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 .

Posted by guest on February 21, 2013 at 03:35 AM PST #

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

Posted by Shay on February 21, 2013 at 10:18 AM PST #

If your debugger is slow when stepping through code, try this
http://dkleppinger.blogspot.com/2013/03/debugging-tip.html

Posted by Don on May 22, 2013 at 03:51 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today