Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  -Xprof test cases  (Read 5192 times)
0 Members and 1 Guest are viewing this topic.
Offline Ken Russell

JGO Coder




Java games rock!


« Posted 2007-10-16 16:51:32 »

As many of you remember, the flat profiler built into HotSpot (-Xprof) became unusably slow in the 5.0 release. It used to have a 10% or less impact on execution speed, but now it slows down the program by a factor of 5 or more. It seems this is finally being looked at, but test cases are needed. I can reproduce the problem with some of the JOGL demos, but since these require somewhat specialized graphics hardware, does anyone have any pure Java examples of this slowdown? JEmu2? Others? The smaller and more self-contained the test case the better.

Thanks.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #1 - Posted 2007-10-16 18:33:48 »

Quote
JEmu2? Others? The smaller and more self-contained the test case the better.
I'll see what I can do.

As for JEmu2, it basically runs fine with -Xprof, except for the Swing front-end: If I run it with front-end, it basically halts when drawing the GUI (it doesn't get beyond drawing an empty, grey, unresponsive JFrame). If I run the emulator without front-end, it runs close to full-speed. Without front-end, no Swing is used, so using Swing or AWT seems to trigger the problem in my case.

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #2 - Posted 2007-10-16 21:20:55 »

I've seen similar behavior with some JOGL apps but it seems to be fixed in later 6 update releases. I'm running prerelease builds here, but if you still see this with the publicly-available 6u3, or the 6uN pre-release builds, let me know.

Anyway, appreciate it if you can provide a test case soon.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 342
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2007-10-17 01:49:08 »

The 6uN build regularly causes pauses and mouse-freeze on my machine, like they've screwed the thread priorities again. Grr.

Cas Smiley

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #4 - Posted 2007-10-19 03:07:35 »

The 6uN build regularly causes pauses and mouse-freeze on my machine, like they've screwed the thread priorities again. Grr.

Issue has been mentioned to the HotSpot runtime team.
Offline princec

JGO Kernel


Medals: 342
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2007-10-19 12:22:05 »

Thanks Ken, I'd report it myself but I have a feeling they'll listen to you a bit more attentively Wink

Cas Smiley

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #6 - Posted 2008-04-14 16:05:49 »

Sorry for necro-ing this thread, but is there any update on this?
-Xprof is still unusuable for swing applications.

For example, running the following with -Xprof results in a completely unresponsive program:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
import java.awt.event.*;
import javax.swing.*;

public class Test {

    public static void main(String[] args) {
       
        final JFrame frame = new JFrame("Frame");
        JButton btn = new JButton("Click here");
        btn.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JOptionPane.showMessageDialog(frame, "Clicked!", "Message", JOptionPane.WARNING_MESSAGE);
            }
        });
        frame.add(btn);
        frame.pack();
        frame.setVisible(true);        
    }
}


There is a bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6618943 but it seems that it's regarded as an RFE, but it looks like a bug to me.

EDIT:
Actually, there seems to be a workaround (-XX:SuspendRetryCount=2)...

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (24 views)
2014-07-24 01:59:36

Riven (24 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (56 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!