[Geoserver-users] Geoserver 2.8.0 and Oracle - another try

Hi guys

To take the Weblogic and Jetty out of the equation - in my quest for a working Geoserver 2.8.0 - I now tried setting up a test instance of the latest Tomcat 7 with Geoserver, using my existing data directory on Windows x64, using the Windows service installer version of Tomcat. I did this, because as far as I understand, Tomcat is the server you mostly support. I simply had to try something to progress in this. Then I could eventually try convincing my boss of letting me set up a Tomcat server later.

However, this also seems to get me nowhere. I have set the GEOSERVER_DATA_DIR environment variable to the right data directory. I have also set CATALINA_OPTS to

-Xms512M -Xmx1024M -XX:MaxPermSize=128m

according the the “Container considerations”.

Still, the server refuses to start. I again monitor the log closely during boot. The server seems to load all my Oracle data stores as expected. But I never reach a running state. It seems, that regardless of what memory options I specify in CATALINA_OPTS, the server sooner or later blows up with

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2367)
at java.lang.String.(String.java:168)
at oracle.jdbc.driver.DynamicByteArray.getStringFrom1Byte(DynamicByteArray.java:589)
at oracle.jdbc.driver.DynamicByteArray.getString(DynamicByteArray.java:447)
at oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:352)
at oracle.jdbc.driver.GeneratedStatement.getString(GeneratedStatement.java:327)
at oracle.jdbc.driver.GeneratedScrollableResultSet.getString(GeneratedScrollableResultSet.java:882)
at oracle.jdbc.driver.GeneratedResultSet.getString(GeneratedResultSet.java:1460)
at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)
at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)
at org.geotools.jdbc.JDBCDataStore.createTypeNames(JDBCDataStore.java:997)
at org.geotools.data.store.ContentDataStore.getTypeNames(ContentDataStore.java:308)
at org.vfny.geoserver.util.DataStoreUtils.getDataAccess(DataStoreUtils.java:96)
at org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:590)
at org.geoserver.catalog.ResourcePool.getCacheableFeatureType(ResourcePool.java:897)
at org.geoserver.catalog.ResourcePool.tryGetFeatureType(ResourcePool.java:884)
at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:870)
at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:865)
at org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureType(FeatureTypeInfoImpl.java:120)
at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
at com.sun.proxy.$Proxy11.getFeatureType(Unknown Source)
at org.geoserver.gwc.layer.CatalogConfiguration.isLayerExposable(CatalogConfiguration.java:444)
at org.geoserver.gwc.config.GWCInitializer.addLayersToNotCache(GWCInitializer.java:281)
at org.geoserver.gwc.config.GWCInitializer.initialize(GWCInitializer.java:151)
at org.geoserver.config.GeoServerLoader.loadInitializers(GeoServerLoader.java:150)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:130)
at org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)

Also, I get literally TONS of these messages in the log. Then again, this also happens on the production 2.6.2 instance without causing any problems - apparently.

16 okt 15:06:34 ERROR [geotools.jdbc] - There’s code using JDBC based datastore and not disposing them. This may lead to temporary loss of database connections. Please make sure all data access code calls DataStore.dispose() before freeing all references to it

I ask again - what has apparently caused the Oracle driver - which I think is the culprit - to use so much more memory in 2.8 compared to 2.6? I’d like to emphasize once again, that my existing production server runs just fine.

I sincerely hope, that somebody here can provide some hints as to what I can do.

Thanks in advance,

Jacob Madsen

On Fri, Oct 16, 2015 at 3:29 PM, Jacob Overgaard Madsen <u2jacob@anonymised.com>
wrote:

Hi guys

To take the Weblogic and Jetty out of the equation - in my quest for a
working Geoserver 2.8.0 - I now tried setting up a test instance of the
latest Tomcat 7 with Geoserver, using my existing data directory on Windows
x64, using the Windows service installer version of Tomcat. I did this,
because as far as I understand, Tomcat is the server you mostly support. I
simply had to try something to progress in this. Then I could eventually
try convincing my boss of letting me set up a Tomcat server later.

However, this also seems to get me nowhere. I have set the
GEOSERVER_DATA_DIR environment variable to the right data directory. I have
also set CATALINA_OPTS to

-Xms512M -Xmx1024M -XX:MaxPermSize=128m

according the the "Container considerations".

Still, the server refuses to start. I again monitor the log closely during
boot. The server seems to load all my Oracle data stores as expected. But I
never reach a running state. It seems, that regardless of what memory
options I specify in CATALINA_OPTS, the server sooner or later blows up with

Hum... how many tables are reachable from that user? Did you set a schema?

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

*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.

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

Just in case...

If you run tomcat as a service, you can not specify Xmx, Xms.... in
startup/catalina.bat. You have to do it in the tomcat service administrator.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Geoserver-2-8-0-and-Oracle-another-try-tp5230639p5230985.html
Sent from the GeoServer - User mailing list archive at Nabble.com.