[Geoserver-users] Deploying GeoServer and Geonetwork on the same Tomcat

Hi Group,

I’m trying to install geonetwork and geoserver on the same tomcat using respective .war file.

If I install Geoserver first, it works like a charm but geonmetwork doesn’t work.

If I install Geonetwork first, it works like a charm but Geoserver doesn’t work …

Thanks for any help on this

I am just trying a guess, do you run tomcat with default startup parameters?
Both application are quite heavy and chances are you run out of memory with default settings.
Did you find any error in tomcat’s log?

Cheers

Stefano

Il giorno 26/mar/2013 20:24, “Olivier Gagnon” <mcnolii@anonymised.com> ha scritto:

Hi Group,

I’m trying to install geonetwork and geoserver on the same tomcat using respective .war file.

If I install Geoserver first, it works like a charm but geonmetwork doesn’t work.

If I install Geonetwork first, it works like a charm but Geoserver doesn’t work …

Thanks for any help on this


Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel’s independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Olivier,

Have a look at

http://docs.geoserver.org/stable/en/user/production/container.html

To fix the error you found you should increase PermGen space with parameter
-XX:MaxPermSize

I would set a 256mb or more

I would also increase heap space with

-Xmx2048M -Xms2048m

Cheers,

Stefano
---------------------------------------------------
41.95581N 12.52854E

http://www.linkedin.com/in/stefanoiacovella

http://twitter.com/#!/Iacovellas

2013/3/26 Olivier Gagnon <mcnolii@anonymised.com>:

Stefano,

you are right. I found java.lang.OutOfMemoryError: PermGen space in
manager.log

I have a pretty good machine (16 g ram with i7 processor)

Where can I change these settings ? I unzip .war file and change what in
which file ?

Should I setup another tomcat in parallel ?

Thanks a lot

________________________________
Date: Tue, 26 Mar 2013 20:44:04 +0100
Subject: Re: [Geoserver-users] Deploying GeoServer and Geonetwork on the
same Tomcat
From: stefano.iacovella@anonymised.com
To: mcnolii@anonymised.com
CC: geoserver-users@lists.sourceforge.net;
geonetwork-users@lists.sourceforge.net

I am just trying a guess, do you run tomcat with default startup parameters?
Both application are quite heavy and chances are you run out of memory with
default settings.
Did you find any error in tomcat's log?
Cheers
Stefano
Il giorno 26/mar/2013 20:24, "Olivier Gagnon" <mcnolii@anonymised.com> ha
scritto:

Hi Group,

I'm trying to install geonetwork and geoserver on the same tomcat using
respective .war file.

If I install Geoserver first, it works like a charm but geonmetwork doesn't
work.

If I install Geonetwork first, it works like a charm but Geoserver doesn't
work ...

Thanks for any help on this

------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Oliver,

I’m running both, but it did require updating the JAVA_OPTS for Tomcat. I’ve got a lot of RAM, but here’s the config I’m using:

JAVA_OPTS=“-server -Djava.awt.headless=true -Xms20G -Xmx20G -Xrs -XX:PerfDataSamplingInterval=500 -XX:MaxPermSize=512m -XX:PermSize=256m -XX:+UseParallelGC -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:NewRatio=2”

HTH,
Wayne

From: Stefano Iacovella <stefano.iacovella@anonymised.com>
Date: Tuesday, March 26, 2013 3:44 PM
To: Olivier Gagnon <mcnolii@anonymised.com>
Cc: Geonetwork <geonetwork-users@anonymised.come.net>, “geoserver-users@lists.sourceforge.net” <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Deploying GeoServer and Geonetwork on the same Tomcat

I am just trying a guess, do you run tomcat with default startup parameters?
Both application are quite heavy and chances are you run out of memory with default settings.
Did you find any error in tomcat’s log?

Cheers

Stefano

Il giorno 26/mar/2013 20:24, “Olivier Gagnon” <mcnolii@anonymised.com> ha scritto:

Hi Group,

I’m trying to install geonetwork and geoserver on the same tomcat using respective .war file.

If I install Geoserver first, it works like a charm but geonmetwork doesn’t work.

If I install Geonetwork first, it works like a charm but Geoserver doesn’t work …

Thanks for any help on this


Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel’s independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Wed, Mar 27, 2013 at 2:08 PM, Graham, Wayne (wsg4w) <wsg4w@anonymised.com> wrote:

Hi Oliver,

I’m running both, but it did require updating the JAVA_OPTS for Tomcat. I’ve got a lot of RAM, but here’s the config I’m using:

JAVA_OPTS=“-server -Djava.awt.headless=true -Xms20G -Xmx20G -Xrs -XX:PerfDataSamplingInterval=500 -XX:MaxPermSize=512m -XX:PermSize=256m -XX:+UseParallelGC -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:NewRatio=2”

20GB? GeoServer is probably not going to use 1/10th of that, even under load, as its architecture
it strongly data streaming oriented (meaning, it never tries to load all the data it needs in a single
shot, it gets it in small bits instead).
But maybe GeoNetwork benefits from having that much memory for its Lucene indexes?

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Yeah, Geoserver itself isn’t using that much memory, the boxes just have a ridiculous amount of RAM. There are some other apps running in the container as well (e.g. Solr and some other apps).

Wayne

From: Andrea Aime <andrea.aime@anonymised.com>
Date: Wednesday, March 27, 2013 9:20 AM
To: Wayne Graham <wsg4w@anonymised.com>
Cc: “geoserver-users@lists.sourceforge.net” <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Deploying GeoServer and Geonetwork on the same Tomcat

On Wed, Mar 27, 2013 at 2:08 PM, Graham, Wayne (wsg4w) <wsg4w@anonymised.com…> wrote:

Hi Oliver,

I’m running both, but it did require updating the JAVA_OPTS for Tomcat. I’ve got a lot of RAM, but here’s the config I’m using:

JAVA_OPTS=“-server -Djava.awt.headless=true -Xms20G -Xmx20G -Xrs -XX:PerfDataSamplingInterval=500 -XX:MaxPermSize=512m -XX:PermSize=256m -XX:+UseParallelGC -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:NewRatio=2”

20GB? GeoServer is probably not going to use 1/10th of that, even under load, as its architecture
it strongly data streaming oriented (meaning, it never tries to load all the data it needs in a single
shot, it gets it in small bits instead).
But maybe GeoNetwork benefits from having that much memory for its Lucene indexes?

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Is this a memory/heap space issue?

I have Geonetwork 2.8.1 & Geoserver 2.2.2 running in the same tomcat 7.0.22 with no problems. It has the following settings: -XX:SoftRefLRUPolicyMSPerMB=36000
-XX:NewRatio=2
-XX:+UseParallelOldGC
-XX:+UseParallelGC
-XX:MaxPermSize=1024m
and min & max initial pool to 1024m

Abe

On 3/26/2013 9:22 AM, Olivier Gagnon wrote:

Hi Group,
I'm trying to install geonetwork and geoserver on the same tomcat using respective .war file.
If I install Geoserver first, it works like a charm but geonmetwork doesn't work.
If I install Geonetwork first, it works like a charm but Geoserver doesn't work ...
Thanks for any help on this
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

hi olivier,

maybe this helps?

http://www.geoportal.rlp.de/mediawiki/index.php/Installation_geonetwork_/_geoserver_Debian_squeeze

regards
armin

On 26.03.2013 20:22, Olivier Gagnon wrote:

Hi Group,
I'm trying to install geonetwork and geoserver on the same tomcat using respective .war file.
If I install Geoserver first, it works like a charm but geonmetwork doesn't work.
If I install Geonetwork first, it works like a charm but Geoserver doesn't work ...
Thanks for any help on this
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Zentrale Stelle Geodateninfrastruktur
Rheinland-Pfalz
LVermGeo-RP

Ferdinand-Sauerbruch-Straße 15
56073 Koblenz

0261/492-466
armin.retterath@anonymised.com
http://www.geoportal.rlp.de