Thanks a lot for your response.
I used RedHat Linux, installed geoserver 2.13.0 with Tomcat 8.5.34, and
installed NetCDF library.
I used REST to add NetCDF data files to geoserver. When the files are over
1000, geoserver dumped. I found some messages in the log file:
27-Feb-2019 16:50:05.674 error [http-nio-8080-Acceptor-0]
org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
at
org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:482)
at java.lang.Thread.run(Thread.java:748)
I checked the geoserver's source code and found it uses java SoftRederence
to release resource, but the memories the connections used are very small,
and it cannot make JVM automatically release memory. So when I add too many
NetCDF files to geoserver, its opened file number would be more than the
open file limits of Linux, thus the geoserver could not be used any more.
And then I used postgis database and put mddatastore.properties in the
directory of NetCDF file. I found connection could not be created when the
connection nubers are over 95. Then I checked the postgis connection status.
It had reached the max connection number.
I need to add over 1,000,000 NetCDF files to geoserver. My question is how
to accomplish that.
I'm expectiong your response.
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users