Here it is ! (and it seems to be good)

ps -lfe | grep java
0 S tomcat    1894     1  2  80   0 - 937413 ?     11:22 ?        00:00:57 
/usr/bin/java 
-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.security.egd=file:/dev/urandom -server -Xms2G -Xmx2G -XX:PermSize=512m 
-XX:MaxPermSize=512m -Djava.awt.headless=true? 
-Djava.endorsed.dirs=/usr/share/tomcat/endorsed -classpath 
/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar 
-Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat 
-Djava.io.tmpdir=/usr/share/tomcat/temp org.apache.catalina.startup.Bootstrap 
start
0 S max76     2042  1359  0  80   0 -  3185 -      11:56 pts/0    00:00:00 grep 
java

But I don’t know why my geoserver Layer preview doesn’t work…

For information, I try to test geoserver installed on debian (guest virtual 
box) and my PostGis data is on host (windows 7)

De : Stefano Costa [mailto:[email protected]]
Envoyé : vendredi 30 octobre 2015 11:53
À : Maxence MELIN
Cc : [email protected]
Objet : Re: [Geoserver-users] Tomcat tuning for geoserver - Layer previews all 
blank



On Fri, Oct 30, 2015 at 11:35 AM, Maxence MELIN 
<[email protected]<mailto:[email protected]>> wrote:
I just tried it, but
my layer previews are still blank frames ☹

I did that in my setenv.sh file :

export CATALINA_OPTS="$CATALINA_OPTS -server -Xms2G -Xmx2G -XX:PermSize=512m 
-XX:MaxPermSize=512m -Djava.awt.headless=true"

Is it OK ? is there any difference between catalina_opts and java_opts ?

They are used in different places, but for your purposes they should be 
equivalent.

Can you open a terminal, run this command:

ps -lfe | grep java

...and share the output? We should be able to confirm that Tomcat actually 
picked up your custom options by looking at the command run by the startup 
script.


De : Stefano Costa 
[mailto:[email protected]<mailto:[email protected]>]
Envoyé : vendredi 30 octobre 2015 11:30
À : Maxence MELIN
Cc : 
[email protected]<mailto:[email protected]>
Objet : Re: [Geoserver-users] Tomcat tuning for geoserver - Layer previews all 
blank

Hi,

On Fri, Oct 30, 2015 at 10:39 AM, Maxence MELIN 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I work on Debian Jessie with JAVA7, Tomcat 8, Geoserver 2.8 and Iceweasel as 
web browser.
To improve Tomcat and geoserver use I created a setenv.sh file with export 
CATALINA_OPTS="$CATALINA_OPTS -server -Xms2G -Xmx2G -XX:PermSize=512m 
-XX:MaxPermSize=512m"
Is it good ? CATALINA seems to be just for the loading of tomcat, so does it 
make sense to increase the PermSize in Catalina in order to optimize Geoserver 
? Where to that then ?


Should be OK, Tomcat should pick those up on startup.



I need also to add JAVA_OPTS="-Djava.awt.headless=true" but I don’t know where 
(somebody told me to set it in /etc/default/tomcat but it doesn’t exist for me… 
where am I supposed to set this java option ?)

You can add it in your setenv.sh script as well.


I may solve my blank layer preview problem…

If you have other advice to optimize geoserver, don’t hesitate to say !

Thanks for your help !

Max




Maxence MELIN
Direction des Systèmes d’Information
Fédération Nationale des Safer
91 rue du Faubourg Saint Honoré
75 008 PARIS
Tél : 01 44 69 86 08

[signature2013ok]


------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



--

Best regards,

Stefano Costa



==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Dott. Stefano Costa

Senior Software Engineer



GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054  Massarosa (LU)

Italy

phone: +39 0584 962313<tel:%2B39%200584%20962313>

fax:     +39 0584 1660272<tel:%2B39%200584%201660272>



http://www.geo-solutions.it

http://twitter.com/geosolutions_it



-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o

nel/i file/s allegato/i sono da considerarsi strettamente riservate.

Il loro utilizzo è consentito esclusivamente al destinatario del

messaggio, per le finalità indicate nel messaggio stesso. Qualora

riceviate questo messaggio senza esserne il destinatario, Vi preghiamo

cortesemente di darcene notizia via e-mail e di procedere alla

distruzione del messaggio stesso, cancellandolo dal Vostro sistema.

Conservare il messaggio stesso, divulgarlo anche in parte,

distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità

diverse, costituisce comportamento contrario ai principi dettati dal

D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely

for the attention and use of the named addressee(s) and may be

confidential or proprietary in nature or covered by the provisions of

privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New

Data Protection Code).Any use not in accord with its purpose, any

disclosure, reproduction, copying, distribution, or either

dissemination, either whole or partial, is strictly forbidden except

previous formal approval of the named addressee(s). If you are not the

intended recipient, please contact immediately the sender by

telephone, fax or e-mail and delete the information in this message

that has been received in error. The sender does not give any warranty

or accept liability as the content, accuracy or completeness of sent

messages and accepts no responsibility  for changes made after they

were sent or for other risks which arise as a result of e-mail

transmission, viruses, etc.





--

Best regards,

Stefano Costa



==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Dott. Stefano Costa

Senior Software Engineer



GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054  Massarosa (LU)

Italy

phone: +39 0584 962313

fax:     +39 0584 1660272



http://www.geo-solutions.it

http://twitter.com/geosolutions_it



-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o

nel/i file/s allegato/i sono da considerarsi strettamente riservate.

Il loro utilizzo è consentito esclusivamente al destinatario del

messaggio, per le finalità indicate nel messaggio stesso. Qualora

riceviate questo messaggio senza esserne il destinatario, Vi preghiamo

cortesemente di darcene notizia via e-mail e di procedere alla

distruzione del messaggio stesso, cancellandolo dal Vostro sistema.

Conservare il messaggio stesso, divulgarlo anche in parte,

distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità

diverse, costituisce comportamento contrario ai principi dettati dal

D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely

for the attention and use of the named addressee(s) and may be

confidential or proprietary in nature or covered by the provisions of

privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New

Data Protection Code).Any use not in accord with its purpose, any

disclosure, reproduction, copying, distribution, or either

dissemination, either whole or partial, is strictly forbidden except

previous formal approval of the named addressee(s). If you are not the

intended recipient, please contact immediately the sender by

telephone, fax or e-mail and delete the information in this message

that has been received in error. The sender does not give any warranty

or accept liability as the content, accuracy or completeness of sent

messages and accepts no responsibility  for changes made after they

were sent or for other risks which arise as a result of e-mail

transmission, viruses, etc.


------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to