13.2 Debugger Slow?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

13.2 Debugger Slow?

Post by sderrick »

Linux Mint AMD64 kernel 2.6.38-8-generic

Ever since upgrading to 13.2 I've noticed the debugger is much slower than 13.2?

Here is my start command from oxygen.sh

"${OXYGEN_JAVA}" -Xss1024k -Xmx1024m\
-XX:SoftRefLRUPolicyMSPerMB=10\
"-Dcom.oxygenxml.editor.plugins.dir=$OXYGEN_HOME/plugins"\
-Dcom.oxygenxml.app.descriptor=ro.sync.exml.EditorFrameDescriptor\
-Dcom.oxygenxml.MultipleInstances=true\
-XX:MaxPermSize=256m\
-cp "$CP" ro.sync.exml.Oxygen "$@"

is there something I can do to speed it up?

thanks,

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: 13.2 Debugger Slow?

Post by adrian »

Hi,

Can you please clarify the version you are comparing 13.2 to?
Also, in what sense you find it slow? Is it less responsive?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: 13.2 Debugger Slow?

Post by sderrick »

adrian wrote:Hi,
Can you please clarify the version you are comparing 13.2 to?
Also, in what sense you find it slow? Is it less responsive?
Regards,
Adrian
I'm comparing to to 13.1

Slow in regards to setting a break-point and having to wait a long long time for it to finally get to the break point. I am debugging large scripts on large documents, and I've come to expect some delay but since upgrading to 13.2 the delay is probably 10 times what it was with 13.1.

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: 13.2 Debugger Slow?

Post by adrian »

Hello,

Do you have any conditional breakpoints(Breakpoints view, Condition field)?

Does the plain transformation(not debugging) take a significant amount of time?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: 13.2 Debugger Slow?

Post by sderrick »

No conditional breakpoints.

The regular transform takes about 15 seconds.

By setting the opt level to 0 it runs somewhat faster.

If I put a regular breakpoint about half way through the document it takes about 2 minutes to reach it.

That seems like a long time.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: 13.2 Debugger Slow?

Post by adrian »

Hi,

Do you have a large number of breakpoints or are you transforming/debugging a large XML file(>2MB)?

The same Saxon-HE/PE/EE 9.3.0.5 is used in both 13.1 and 13.2, so considering this worked fine for you in v13.1, the problem might be caused by a setting, rather than a change in the engine.

Try to reset your Oxygen options to their defaults:
1. First export your options in case you want to import them back:
Options > Export Global Options, save them to a file with the '.xml' extension in a safe place.
2. Reset the options: Options > Reset Global Options.
3. Restart Oxygen.
4. Create a new project(Project > New Project) and try to setup again the transformation/debugging scenario.
5. If the problem persists, you can import back your options: Options > Import Global Options and go back to your project.


Additionally, do you still have 13.1 installed?
If you don't, can you please install it again in a different directory(side by side) and try debugging the same scenario?
You can find 13.1 for Linux 64-bit here:
http://www.oxygenxml.com/InstData13.1/E ... n-64bit.sh
If possible, it would be preferable to also use the same options resetting procedure for 13.1.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: 13.2 Debugger Slow?

Post by sderrick »

I upgraded JDK from the latest Sun 6.x to openJDK 7.x

The upgrade seemed to cure the slowdown. I tested 12.2, 13.1 and 13.2, all ran my large file test in about the same time.

Much much faster than before.

Sorry for the false alarm. Mint must have upgraded the Sun JDK in the repository right around the same time I upgraded Oxygen.

thanks,

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: 13.2 Debugger Slow?

Post by adrian »

Don't worry, that's an interesting find.
We'll have to test the JREs and see if there is indeed an issue with the Sun JRE.
What Oxygen distribution are you using, is it the Linux 64-bit kit(.sh) or the All platforms kit(.tar.gz)

If it was the All platforms kit, do you remember what version of Sun JRE did you have installed?

What version of the Linux Mint distribution are you using?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: 13.2 Debugger Slow?

Post by sderrick »

Oxygen: oxygen-64bit.sh is the file name

Mint: 11, Katya, AMD64

kernel: #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011


thanks,

Scott
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: 13.2 Debugger Slow?

Post by adrian »

Note that this Linux 64-bit kit(oxygen-64bit.sh) has a bundled Sun/Oracle JRE 6 that is used by Oxygen. If you have not renamed/moved or deleted the 'jre' directory from the Oxygen installation directory, then Oxygen is still using the bundled JRE from Sun/Oracle.

Did you check if Oxygen is really using your system installed openJDK 7?
Go to Help > About, System properties and look for the properties:
java.runtime.name and java.runtime.version.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: 13.2 Debugger Slow?

Post by sderrick »

Yeah, I must have been dreaming because its still really really slow.

I deleted the bundled JRE and Oxygen now shows it is using my jdk1.7. but no improvement.

I still have the really exasperating disappearing local variables if I evaluate an if() expression. Makes debugging a PITA!

Its not running out of memory, at least is shows 1.3GB available and used is always between 15% and 35%.

Scott
Post Reply