Thread: Very slow performance in Jdeveloper


Permlink Replies: 12 - Pages: 1 - Last Post: Nov 12, 2007 11:15 AM Last Post By: Sandra Muller
MichaelGS

Posts: 75
Registered: 10/05/06
Very slow performance in Jdeveloper
Posted: Nov 16, 2006 9:34 AM
Click to report abuse...   Click to reply to this thread Reply
I've posted in the Jdeveloper forum and raised a Service Request in Metalink, but one suggestion is that my problems may be JHeadstart related, so please let me know if this is a known issue:

We're getting increasingly poor performance in Jdeveloper. Expanding a project for the first time in a session takes a long time, opening some files causes the CPU to spike to 100% for around 20 seconds, and even changing a property in the JSF editor takes about 10 seconds.

We're using JDev 10.1.3.0.4 SU5 with JHeadstart 10.1.3 SU1

Our application is quite large - approximately 20MB in the workspace folder.

Other factors - CPU: P4 2.4MHz, Memory: 1GB, using CVSNT, but same performance when Versioning is disabled.

thanks,

Michael
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Nov 21, 2006 6:32 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
Michael,

I don't think it's because of JHeadstart, at least not directly. Maybe indirectly because JHeadstart uses multiple faces-config files.

I can tell you how we solved the performance problems at a big JHeadstart project:
* Before starting JDeveloper, edit the web.xml file and comment out the entry
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>...</param-value>
</context-param>
* Open JDeveloper and open the ViewController project before you put back the CONFIG_FILES parameter in web.xml.
* Use PC's with 2GB internal memory
* Use the JDeveloper extension KeepResident (Check for Updates, Partner extensions)
* Configure the JDeveloper Preferences to open files in the Source editor by default (Tools - Preferences - File Types, tab Default Editors)

Hope this helps,
Sandra Muller
JHeadstart Team
MichaelGS

Posts: 75
Registered: 10/05/06
Re: Very slow performance in Jdeveloper
Posted: Nov 21, 2006 7:34 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
Thanks Sandra,

I am in the process of trying out your suggestions, and it looks very good so far.

Can I clarify a few points:

1. Will we have to comment out the CONFIG_FILES content parameter every time we open Jdeveloper? Is this something that you would use a scripting tool for?

2. I'm sure I have read that JDeveloper is optimized for 1GB internal memory. Has this changed with later releases, or does this become insufficient when the JHeadstart extension is installed? From the feedback in the Jdeveloper forum, it would seem that performance issues are not as common as they used to be, so I'm a bit suspicious!

3. I can see that opening jspxs by default in the Source editor is handy if you only want to look at code or version history, but there doesn't seem to be a benefit when using the design editor - is that what you would expect?

4. I have already tried to install KeepResident, but it doesn't work with our configuration. I think this is because our Jdev_User_home is not the same as the JDeveloper home directory. Would you expect a big performance improvement from this, or is it just to deal with the problems when you have minimised Jdeveloper and it takes a long time to redraw?

5. Have you experienced the problems we are having when changing properties in the jspx design editor?

thanks again,

Michael
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Nov 22, 2006 12:58 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
Michael,

In response to your questions:
1. Will we have to comment out the CONFIG_FILES
content parameter every time we open Jdeveloper? Is
this something that you would use a scripting tool
for?

Yes, you would have to do this every time. The chances that it will be fixed in a future JDeveloper release increase with each customer that logs a Service Request for it in MetaLink (http://metalink.oracle.com).

We haven't used a scripting tool for this. If you find a way to automate it, please share it with us!

2. I'm sure I have read that JDeveloper is optimized
for 1GB internal memory. Has this changed with later
releases, or does this become insufficient when the
JHeadstart extension is installed? From the feedback
in the Jdeveloper forum, it would seem that
performance issues are not as common as they used to
be, so I'm a bit suspicious!

It's true that each JDeveloper extension increases the amount of internal memory used, so you could optimize by installing as little extensions as possible (see also http://blogs.oracle.com/duffblog/2006/08/22#a346). Running Embedded OC4J also increase the amount of memory used.
You can check how much memory JDeveloper is using by turning on the Memory Monitor (see http://blogs.oracle.com/duffblog/2006/09/10#a355 how to do that).
Of course the required memory also depends on what other programs you want to run simultaneously (browser, editor, email, SQL tool, etc).

3. I can see that opening jspxs by default in the
Source editor is handy if you only want to look at
code or version history, but there doesn't seem to be
a benefit when using the design editor - is that what
you would expect?

The only benefit is that you save the time of opening the Design editor if you are not going to need it for that particular file. Not only for the jspx files, but also for the faces-config files. If a faces-config file does not contain any navigation rules but only managed beans, the visual design is not useful anyway.

4. I have already tried to install KeepResident, but
it doesn't work with our configuration. I think this
is because our Jdev_User_home is not the same as the
JDeveloper home directory. Would you expect a big
performance improvement from this, or is it just to
deal with the problems when you have minimised
Jdeveloper and it takes a long time to redraw?

The latter, and probably also when you switch between applications without actually minimizing JDeveloper.

5. Have you experienced the problems we are having
when changing properties in the jspx design editor?

Yes, and that's why we prefer to make changes in the source code instead.

Hope this helps,
Sandra Muller
JHeadstart Team
MichaelGS

Posts: 75
Registered: 10/05/06
Re: Very slow performance in Jdeveloper
Posted: Dec 4, 2006 1:47 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
Just received the following response from metalink to our service request. What do you think?

Research
=========
Load the customer's test case.I can see all issues he is concerned about. But they are the expected behavior given that the application was built with JHeedstat.

Specifically, there are many layers for Model project and the Model.jpr is 'huge' (351K).
Note that when you expand the node ViewController, system will load every piece of referenced files (ADF stuff, classes, xml, etc) and this opening processes could take long before they are all in places.
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Dec 4, 2006 4:06 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
I'd say that it's the size and/or amount of files that produces the problem, not JHeadstart itself. If you were to create all that on your own, you would get the same result.

Of course, it does make sense that if you have large JDeveloper projects, you need more memory.

On the other hand, the fact that temporarily removing the CONFIG_FILES parameter from web.xml during the initial expand of the ViewController node, and the fact that putting back the CONFIG_FILES after the ViewController project is loaded does not cause any performance problems, seems like an area where some tuning of JDeveloper could make a big difference. That has nothing to do with the size of the project.

Hope this helps,
Sandra Muller
JHeadstart Team
Oracle Consulting
MichaelGS

Posts: 75
Registered: 10/05/06
Re: Very slow performance in Jdeveloper
Posted: Dec 12, 2006 10:03 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
Well - we have a bug now: ID 5706124.

I've been told that development may not accept it as a bug though. I'll let you know if there's any progress.
MichaelGS

Posts: 75
Registered: 10/05/06
Re: Very slow performance in Jdeveloper
Posted: Jan 3, 2007 3:48 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
This is officially a bug on metalink - however the severity level is "Minor Error, No Loss of Service".

I've had extra memory installed on my PC (1.7GB), but have not noticed any improvement at all. However, one of our developers has installed the full development environment on his laptop (minus version management) and isn't having any performance problems.

Does this point to a hardware issue (his laptop has a dual core processor) or an issue with version management?

Is this a common issue, or does it only affect very large projects?

thanks,

Michael
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Jan 3, 2007 4:21 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
Michael,

The only way to find out is by experimenting. Is it possible for the other developer to (temporarily) install version management and see if it slows down JDeveloper? Or can you (temporarily) remove version management and see if it speeds up JDeveloper? What kind of version management software do you have?

I think this issue only affects large projects, that have a lot of entries in the web.xml javax.faces.CONFIG_FILES parameter.

kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting
Jan Vervecken (...

Posts: 1,636
Registered: 10/29/98
Re: Very slow performance in Jdeveloper
Posted: Jan 3, 2007 4:52 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
hi Sandra

You wrote "I think this issue only affects large projects, that have a lot of entries in the web.xml javax.faces.CONFIG_FILES parameter.".

Would it make a difference (in performance) if such a project had only one (large) faces-config.xml file?
If it makes sense, would it be possible to have JHeadstart output only one (large) faces-config.xml file?

regards
Jan Vervecken
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Jan 4, 2007 6:02 AM   in response to: Jan Vervecken (... in response to: Jan Vervecken (...
Click to report abuse...   Click to reply to this thread Reply
Jan,

Good idea! I don't know if it would make a difference. Somebody would have to try it.

We might be able to add an option to the JHeadstart Application Generator to combine all faces-configs into a single large file, but it is not straightforward to build. So I would like to have some confirmation that it would indeed improve the performance of JDeveloper.

If somebody tested this, can you please post a reply to this thread?

kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting
MichaelGS

Posts: 75
Registered: 10/05/06
Re: Very slow performance in Jdeveloper
Posted: Mar 6, 2007 9:01 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
I've just managed to get KeepResident working (the trick was to copy the dll to the correct directory).

Are there any suggestions for the best parameters to use? We have PCs with 1GB, 2GB, and 1.75GB of memory, so I'd be interested to know whether changing the settings in the conf file makes a noticeable difference - what I'm trying right now is:

AddVMOption -Duk.org.damselfly.jdev.keepResident.virtualLock=false
AddVMOption -Duk.org.damselfly.jdev.keepResident.minValue=200000000
AddVMOption -Duk.org.damselfly.jdev.keepResident.maxValue=500000000
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: Very slow performance in Jdeveloper
Posted: Nov 12, 2007 11:15 AM   in response to: MichaelGS in response to: MichaelGS
Click to report abuse...   Click to reply to this thread Reply
I have now collected all JDeveloper speed-up tips known to me in a new JHeadstart blog post: see http://blogs.oracle.com/jheadstart/2007/11/12#a243.

It includes a Windows batch script to start JDeveloper without having to manually change the web.xml and still have the performance gain when using multiple faces-config files.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums