[Geoserver-users] Geowebcache, geoserver ant tomcat.

Hi , I'm newbie, and I have to build a mosaic with 4000 files, the steps are Ok until I seed in GWC this mosaic, and these things are happening to me:

1- Build white images,and generates the folders.(fault mine?)
or
2- Build the images, but some tiles are lost, some zooms lost all tiles.(gwc or geoserver fault?)
or
3- None are built, geoserver shows logs " Too many open files". (Tomcat fault?)

How I can solve each one these errors?

Thanks in advance.

"Too many open files" usually refers to a limitation in the operating system, that you actually have too many files open. I doubt it's Tomcat's fault, the question is whether it's a necessity due to the Mosaic or a bug in either the mosaic or gwc.

1 and 2 definitely sound like symptoms of 3, GeoTools tends to quitely render incomplete tiles if the backend fails along the way.

I would like to know
1) Operating System
2) Version og GeoServer (and GeoWebCache, if it's separate)
3) If Linux, output of ulimit -n
4) Does this happen right after you start seeding, or after a long time?
5) Amount of memory and swap in the machine
6) JVM settings?
7) How many seeding threads you were running

-Arne

Francisco Luis López wrote:

Hi , I'm newbie, and I have to build a mosaic with 4000 files, the steps are Ok until I seed in GWC this mosaic, and these things are happening to me:

1- Build white images,and generates the folders.(fault mine?)
or
2- Build the images, but some tiles are lost, some zooms lost all tiles.(gwc or geoserver fault?)
or
3- None are built, geoserver shows logs " Too many open files". (Tomcat fault?)

How I can solve each one these errors?

Thanks in advance.

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Simone or Daniele: Out of curiosity, any estimate of how many of those 4000 mosaic files would be open simultaneously, per request?

5 to 10 threads is a lot. Try with 1 first, if that works we can look into increasing the limit. But given the amount of memory you have available, and the fact that everything is running on the same machine, I would not run more than 3 threads anyway.

Good thing you're not running Windows, I would have no idea how to check the number of open files or increase it beyond telling you to buy more RAM :wink:

-Arne

ps. Please don't forget to CC geoserver-users

Francisco Luis López wrote:

1) Operating System
  Ubuntu.
2) Version og GeoServer (and GeoWebCache, if it's separate) .
   1.7.3, with GWC
3) If Linux, output of ulimit -n
1024
4) Does this happen right after you start seeding, or after a long time?
Just start..
5) Amount of memory and swap in the machine
RAM 3,2 GB and swap 8,7Gb
6) JVM settings?
   We have this conf.
      "-Xms2560m -Xmx2560m -XX:MaxPermSize=128m"
7) How many seeding threads you were running
   Between 5 and 10.

Arne Kepp escribió:

"Too many open files" usually refers to a limitation in the operating system, that you actually have too many files open. I doubt it's Tomcat's fault, the question is whether it's a necessity due to the Mosaic or a bug in either the mosaic or gwc.

1 and 2 definitely sound like symptoms of 3, GeoTools tends to quitely render incomplete tiles if the backend fails along the way.

I would like to know
1) Operating System
2) Version og GeoServer (and GeoWebCache, if it's separate)
3) If Linux, output of ulimit -n
4) Does this happen right after you start seeding, or after a long time?
5) Amount of memory and swap in the machine
6) JVM settings?
7) How many seeding threads you were running

-Arne

Francisco Luis López wrote:

Hi , I'm newbie, and I have to build a mosaic with 4000 files, the steps are Ok until I seed in GWC this mosaic, and these things are happening to me:

1- Build white images,and generates the folders.(fault mine?)
or
2- Build the images, but some tiles are lost, some zooms lost all tiles.(gwc or geoserver fault?)
or
3- None are built, geoserver shows logs " Too many open files". (Tomcat fault?)

How I can solve each one these errors?

Thanks in advance.

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers