Slow Startup for Java Web Start Application -


i'm using netbeans ide develop java web start application launch web , use eclipselink jpa access remote mysql database. i'm using swing application framework manage life cycle app.

when launch application netbeans takes 7 second application load, when use netbeans ide create web start distribution package (with jar , jnlp files) takes 60 seconds launch. also, "verifying application"/"downloading application" progressbar window seems run every time launch app though copy of has been cached.

from users point of view, 1 first sees splash screen 1 2 seconds, "verifying application"/"downloading application" progressbar window 5 20 seconds , nothing 40 seconds before application launches.

the app code written such should show before jpa starts loading persistence unit (so doubt that's problem), thought i'd mention in case.


update: method createentitymanagerfactory slow web start

having looked further, i've found method createentitymanagerfactory--which necessary eclipselink connect mysql--takes aboutn 5 seconds execute when run applicaiton netbeans or when remotely log in server launch jnlp there, when run application via web same line takes 35 seconds (hugely delaying startup). interestingly, time gets worse internet connection speed gets worse. below copy of jnlp file i'm using.

does have idea may causing such delay?

<?xml version="1.0" encoding="utf-8" standalone="no"?> 

myapp app vendor app description myapp

i'm not sure if solved yet. but, repeated problem , fixed it. had switch eclipselink toplink. simple. startups went 1 2 minutes down 5 seconds. traced app , found same hanging during init of eclipselink.

hope helps.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -