Java 1.5 pauses my PC for some seconds regularly

I moved to update 1 and Eclipse 3.1M4 after my rant :slight_smile:

Seems a lot better, thank you for the suggestions.

thnx,

update: it still happens, but not as bad…

It’s still completely jerk-tastic here.

Cas :slight_smile:

[quote]It’s still completely jerk-tastic here.

Cas :slight_smile:
[/quote]
Get more memory :slight_smile: Or tweak your heap usage (maybe -Xmx256m)
might help here.

This is nothing to do with paging. I’ve got a gig of RAM and it’s not even close to swapping. Nor has the VM even gotten close to its max heap allowance. I want to know why my mouse pointer jerks like anything. If there’s one thing that shouldn’t get unresponsive it’s the mouse.

Cas :slight_smile:

So did anyone found a reason for that shutter?
Just currious.

“In order to prevent VRAM from being lost during access to a surface, DirectDraw holds the Win16 lock between Lock and Unlock operations. The Win16 lock is the critical section used to serialize access to GDI and USER. Although this technique allows direct access to video memory and prevents other applications from changing the mode during this access, it will stop Windows from running, so Lock/Unlock and GetDC/ReleaseDC periods should be kept short. Unfortunately, because Windows is stopped, GUI debuggers cannot be used in between Lock/Unlock and GetDC/ReleaseDC operations.”

So for start we might try to disprove this.
Then we might look what in common have that computers with shutter.

cas do you have dual CPU system? Does it behave as badly on your other computers? Are you using the Eclipse with the SWT, or with the Swing?

I’ve found the same problem, but it is intermittent.
I’m tracking it to try and reproduce it, as it seems to happen after I’ve been using eclipse for some time.

I’m not sure if it’s related, but I’ve noticed it starts to happen when I’m also concurrently using firefox that runs a bunch of applets as part of a tutorial of the projects api I’m working on.

and it’s &$*$ing annoying…

To see if windows lock causes this stuttering, try this flag:
-Dsun.java2d.ddlock=false

Eclipse doesn’t use AWT. The problem appears to be related to garbage collection - as if some global system lock is being obtained during collections.

Cas :slight_smile:

[quote]Eclipse doesn’t use AWT. The problem appears to be related to garbage collection - as if some global system lock is being obtained during collections.
[/quote]
Of course it depends on instalation. If you’d like to use Swing in Eclipse you could download the right one. (could it be this one? :http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.0.1-200409161125/eclipse-SDK-3.0.1-linux-motif.zip) I listened there were problems with one of BitTorent client. When I looked at its main page there was a sentence it uses SWT.
Dunno if related, or not.

BTW what happened after you used "-Dsun.java2d.ddlock=false
" ?

Looks like finally this nasty thing has been fixed in Java 1.5.0_06.
Please have a look at here: http://www.java-gaming.org/forums/index.php?topic=11624.0