Hi, Ricardo,

     Your geoserver already starts in a reasonable time. I was unsettled 
with my installation because it took six minutes. Since haveged did not 
change the time needed to run your test, it seems geoserver (actually 
tomcat8) is not limited by entropy on startup.
     To make sure you have enough entropy, run the following on the same 
machine but on a separate console:

     watch cat /proc/sys/kernel/random/entropy_avail

     Then run the startup test on the original console. The reported 
entropy is expected to be over 1000 bits and likely over 2000 bits. "man 
random" says the maximum is 4096. If it goes under 1000 you are 
"starved" for entropy and haveged is not working properly. My guess is 
that your number will be a healthy value over 2000 bits and you should 
try a different approach to improve your startup time, which by the way 
seems fine to me.

Best,
Daniel


Em 31/01/2017 09:02, Ricardo Pinho escreveu:
> Oi Daniel,
> Very interesting! I use VM's a lot and always found geoserver very 
> slow to start. :(
>
> On my "Ubuntu 16.04 server minimal VM, clean install", running on 
> vmware player:
> (needed previous: sudo apt install curl)
>
> sudo su
> service tomcat8 stop && service tomcat8 start && time curl 
> http://127.0.0.1:8080/geoserver/web
>
> # returns
> real    0m24.487s
> user    0m0.000s
> sys     0m0.004s
>
> Then I tried the havegen solution:
>
> sudo apt install haveged
>
> #verifydefaults
> sudo vi /etc/default/haveged
> #contains: checked
> DAEMON_ARGS="-w 1024"
>
> #start havegd at boot
> update-rc.d haveged defaults
>
> sudo reboot
>
> Run it again:
> sudo su
> service tomcat8 stop && service tomcat8 start && time curl 
> http://127.0.0.1:8080/geoserver/web <http://127.0.0.1:8080/geoserver/web>
>
> #Results
> real    0m24.258s
> user    0m0.000s
> sys     0m0.004s
>
> The same! :(
>
> Am I doing this right?
>
> Thank's
> Ricardo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to