I'm getting a segmentation fault when I run the
program below with amd64 java rc1.  I've tried both
the jdk and jre.  The program fetchs a faily large
result set from a database.  I execute it with the
following command:

java -Xmx1000m -cp mysql.jar:. Test

If I use -Xmx500m then it works, but I really need a
larger heap.

I'm using Suse 9.0 professional on a dual opteron 240
system with 4gb ram.  I'm running the latest updates
from the suse online update program.  The kernel is
2.4.21-178-smp.

Just wondering if this is reproducable with anyone
else's amd64 system.  I dont have problems with
anything else so I believe my system hardware to be
ok.

If anyone has any sugestions or needs further info let
me know.

Also, on a very good note, I have performance tested
the amd64 rc1 and it is over 30% faster with one of my
programs.  This is great work.  I'm very much looking
forward to using JNI and large heaps with amd64 java.

Frank


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
                                                      
                                                      
                                                      
                  
public class Test {
                                                      
                                                      
                                                      
                  
    public Test(String[] args) throws Exception {
        String url = "jdbc:mysql://suse:3306/";
        String user = "root";
        String pass = "";
        String sql = "select * from wow.cb2003 limit
100000";
        int count = 0;
                                                      
                                                      
                                                      
                  
        System.out.println("Starting.");
                                                      
                                                      
                                                      
                  
       
Class.forName("com.mysql.jdbc.Driver").newInstance();
        Connection con =
DriverManager.getConnection(url, user, pass);
                                                      
                                                      
                                                      
                  
        for (int x = 0; x < 10; x++) {
            System.out.println("X: " + x);
            Statement stmt = con.createStatement();
                                                      
                                                      
                                                      
                  
            ResultSet result = stmt.executeQuery(sql);
                                                      
                                                      
                                                      
                  
            while (result.next()) {
                ++count;
            }
                                                      
                                                      
                                                      
                  
            result.close();
            stmt.close();
                                                      
                                                      
                                                      
                  
            result = null;
            stmt = null;
        }
                                                      
                                                      
                                                      
                  
        System.out.println("Done: " + count);
    }
                                                      
                                                      
                                                      
                  
    public static void main(String[] args) throws
Exception {
        new Test(args);
    }
}


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to