Start a new topic

dbVis initializes for over a minute

[This topic is migrated from our old forums. The original author name has been removed]

Hello. After i changed my vmoptions file as suggested in the below link, it takes about a minute for the dbVis to start. http://www.dbvis.com/forum/thread.jspa?threadID=2790&tstart=125 ( -Dsun.java2d.d3d=false ) It has been like this for a long time now (since Oct 2009), but i just now decided to let you know. ;) From the Debug Window: --------------------------- Debug Printouts -------------------------- 08:06:56 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] *Init Seconds: 63.529* splash display: 2.500 window display: 61.483 ------------------------- Product Information ------------------------ Product: DbVisualizer Personal 7.0.5 Build: #1497 (2010/03/15 17:28) Java VM: Java HotSpot(TM) Client VM Java Version: 1.6.0_13 Java Vendor: Sun Microsystems Inc. OS Name: Windows XP OS Arch: x86 OS Version: 5.1 ------------------------- Connected Databases ------------------------

[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Thanks Alex. We will do some improvements in the next feature version regarding file access. I suspect however that the improvement will be low since file access with an empty prefsdir compared to the regular prefsdir is just a few seconds in your tests. The big time eater seem to be java2d.3d property which we have no way to address. We have to wait for an improved JVM to fix this. The 12.735 init time seem to be fastest your environment is able to launch DbVisualizer. For me it takes approx 9 secs running the same test. This can probably be explained due to differences in hardware and system resources. Best Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Roger, It has gotten a lot better since I pointed the prefsdir to my local C drive .. But still takes over 14 sec With this config in my .vmoptions: -Xmx1024m -Ddbvis.prefsdir=C:\DEV_APPS_SETTINGS\dbvis -Dsun.java2d.d3d=false --------------------------- Debug Printouts -------------------------- 08:07:02 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] Init Seconds: 31.516 splash display: 2.000 window display: 29.344 With (THIS IS MY CURRENT CONFIGURATION) -Xmx1024m -Ddbvis.prefsdir=C:\DEV_APPS_SETTINGS\dbvis --------------------------- Debug Printouts -------------------------- 08:27:56 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] Init Seconds: 12.735 splash display: 2.188 window display: 10.719 With (prefsdir pointing to an empty dir) -Xmx1024m -Ddbvis.prefsdir=C:\dbvis_test -Dsun.java2d.d3d=false --------------------------- Debug Printouts -------------------------- 08:32:24 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] Init Seconds: 32.407 splash display: 1.141 window display: 29.954 With -Xmx1024m -Ddbvis.prefsdir=C:\dbvis_test --------------------------- Debug Printouts -------------------------- 08:33:06 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] Init Seconds: 14.125 splash display: 1.344 window display: 11.672
[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Alex, I am looking into the startup delay you have reported. What is the time to start DbVisualizer if you run with your normal configuration? What is the time if you start DbVisualizer with a clean configuration using the -prefsdir command line argument? Best Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Ok. Guess we're stuck with a 32 second startup time.. disappointing ;(
[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Hi Alex, There are no explicit improvements regarding file access in the EA. Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Roger, Any improvement here in the EAP version?
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Ok. Thanks Roger. Please let us know if you find anything with respect to improving access time for remote files. So, at this point, I am pointing my -prefsdir to local HD, with -Dsun.java2d.d3d=false and my startup time is 32sec
[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Alex, I cannot tell for sure since it is related to Java internals but I assume turning it off also disables the graphics acceleration resulting in decreased performance. Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
I guess what I meant to say was how does turning this option OFF directly affects the dbVis' startup time
[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Alex, The -Dsun.java2d.d3d=false property is used to turn off the use of Direct3D in Java on Windows platforms. Here is the full list of properties used to control the 2D graphics in Java: http://java.sun.com/javase/6/docs/technotes/guides/2d/flags.html It may be a good idea trying some of the others to see if the remote desktop problem is eliminated and keeping decent performance. Best Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Roger, Why does -Dsun.java2d.d3d=false slow down performance even when having dbVis prefs dir on local HD ?
[This reply is migrated from our old forums.]

Re: dbVis initializes for over a minute
Alex, I am afraid that both the remote issue and the slower performance accessing the network drive is out of our control as these are Java related. The remote thing is definitely something we need to wait for an improved JVM. For remote file access I will check whether we can improve our logic accessing them. Best Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
....OK .. Here is more: so i put back the -Dsun.java2d.d3d=false and now, when i point to -prefsdir c:\dev_apps_settings\dbvis ---- the launch time jumped to 33 seconds.... take it out, back to 13, put it back, back to 33....
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Also, I had to put back the -Dsun.java2d.d3d=false since I had to remote in yesterday night, and, when I came in today back to the office --- the dbVis was blown up with the same java exception errors forcing me to shut down the dbVis tasks ....
[This reply is migrated from our old forums. The original author name has been removed]

Re: dbVis initializes for over a minute
Roger, I was afraid of that.... Zipped all my current settings off the net drive, unzipped to c:\test\dbvis, launched dbvis -prefsdir c:\test\dbvis --- took ~14 sec Any ideas? (Except "Keep your settings on your local drive" ;) ? --------------------------- Debug Printouts -------------------------- 07:36:20 [DEBUG AWT-EventQueue-1 DbVisualizerGUI.?] Init Seconds: 13.562 splash display: 2.297 window display: 11.828