Interesting, looking at the code in GeoServerSecurityManager I found the
following snippet

  /*
         * list of file watchers
         * TODO: we should probably manage these better rather than just
throwing them in a
         * list, repeated loads will cause this list to fill up with threads
         */
        protected List<FileWatcher> fileWatchers = new
ArrayList<FileWatcher>();


I think it would be better to register the watchers in a Map using the
canonical file name as a key. Upon reload, an existing watcher should be
terminated.

Andrea, I have no idea why you have always 2 threads but looking on the
Java code, this issue should be fixed.

Should I open a JIRA issue

Christian




2013/2/23 Andrea Aime <[email protected]>

> On Sat, Feb 23, 2013 at 12:31 PM, Andrea Aime <
> [email protected]> wrote:
>
>> I'm not sure what might cause this, but a reasonable candidate could be
>> configuration
>> reloads, are you issuing those commands frequently?
>>
>
> Hum... I've tried to reload/clear the configuration, and edit users and
> roles, but
> the threads watching the files keep on being just 2.
> Not sure what can cause them to become thousands...
>
> 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
>
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to