Hi, Are you sure the command is right?
I used this one: java -cp "$cp" -Xrunhprof:cpu=samples,depth=16 org.h2.tools.RunScript -url "jdbc:h2:~/development/mydb" -user "sa" -password "" and I have this error message Exception in thread "main" org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.FileNotFoundException: backup.sql (No such file or directory)"; "backup.sql" [90031-125] at org.h2.message.Message.getSQLException(Message.java:111) at org.h2.message.Message.convertIOException(Message.java:329) at org.h2.tools.RunScript.process(RunScript.java:316) at org.h2.tools.RunScript.run(RunScript.java:140) at org.h2.tools.RunScript.main(RunScript.java:68) Caused by: java.io.FileNotFoundException: backup.sql (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at org.h2.store.fs.FileSystemDisk.openFileInputStream(FileSystemDisk.java:393) at org.h2.util.FileUtils.openFileInputStream(FileUtils.java:255) at org.h2.tools.RunScript.process(RunScript.java:181) at org.h2.tools.RunScript.process(RunScript.java:311) On Wed, Dec 16, 2009 at 7:40 PM, Thomas Mueller < [email protected]> wrote: > Hi, > > > Is there something I could test? > > Yes. Could you run the following and then post or send me the > java.hprof.txt file? > > java -Xrunhprof:cpu=samples,depth=16 org.h2.tools.RunScript -url > jdbc:h2:test > > (replace jdbc:h2:test with your database URL). This command is > supposed to throw a FileNotFoundException, or (if not that) it should > say complain that the user name or password is wrong. Still it should > open the database, so it should still take 5-6 seconds. And during > that time it should measure the performance and write that to the > java.hprof.txt file. > > Regards, > Thomas > > -- > > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<h2-database%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
