AW: not allow directory listing
Hi, With Tomcat 3.2.2 I did it in the server.xml file: . ... setting the suppress="true" like the comment said. Bye Raffaella > -Ursprüngliche Nachricht- > Von: gary MacPhil [SMTP:[EMAIL PROTECTED]] > Gesendet am: Mittwoch, 25. Juli 2001 02:17 > An: [EMAIL PROTECTED] > Betreff: not allow directory listing > > How do you not allow a directory listing in tomcat for > any web app? > > If I have a web app called "foo", then I could do > http://:/foo > and get the directory listing of all files and > directories. > If I place a index.html in this dir, then it will stop > it for this directory, but not all sub-dirs. > > Any ideas? > > Thanks, > Gary > > __ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/
AW: too many open files
lsof is also on Solaris available? (out of context, but just to follow disc. ;-)) Have you ever seen this problem? Has something with the classloader to do, or surely not? Thanx R. > -Ursprüngliche Nachricht- > Von: Ralph Einfeldt [SMTP:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 24. Juli 2001 11:43 > An: '[EMAIL PROTECTED]' > Betreff: AW: too many open files > > How many open files are needed by tomcat depend > on several points. > > Have a look at lsof (as root) to see what and > how many files are open at a given time. > > 64 open files is a quite low number. (Even the limit of > 1024 can be quite low if the server is under heavy load > or runs more applications than just the web server and > tomcat.) > > > -Ursprüngliche Nachricht- > > Von: Tognolini Raffaella, CH [mailto:[EMAIL PROTECTED]] > > Gesendet: Dienstag, 24. Juli 2001 11:10 > > An: '[EMAIL PROTECTED]' > > Betreff: AW: too many open files > > > > > > Hi, > > My applet ist just a java-"application" and is doing nothing > > with files, the > > only files I open directly, I close them. > > In DEBUG of tomcat, you can see, it's just loading classes > > and after a while > > > > (not long) doing nothing else then opening different windows > > in my applet > > (new classes are loaded) tomcat can't anymore... > > On my Solaris there is a soft-limit of 64 open files and an > > hard limit of > > 1024 I could add some more to the soft-limit, but I thought, > > that jvm or the > > classloader of tomcat should just work > > There are other people that also did last-test with their > > applet and had the > > same problem, and just on solaris, but not on linux or others... > > Thanx > > Raffaella > > > > > -Ursprüngliche Nachricht- > > > Von: John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > > > Gesendet am: Dienstag, 24. Juli 2001 10:38 > > > An: [EMAIL PROTECTED] > > > Betreff: Re: too many open files > > > > > > "Tognolini Raffaella, CH" wrote: > > > > > > > > Hi, > > > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > > > Browser Netscape > > > > > > > > After a while that my applet is running and tomcat > > loading classes, I > > > > receive > > > > following exception, continously and tomcat dies. Do you > > have an idea? > > > > Is like tomcat can't load any more classes: > > > > > > What's the maximum number of open files for Solaris 2.6? > > How many open > > > files are there? > > > > > > What does your applet do? Does it open files and not close > > them after > > > they are read? > > > > > > > > > Cheers, > > > > > > > > > John Clark > > > -- > > > /) John Clark Naldoza y Lopez (\ > > > / )Software Design Engineer III ( \ > > > _( (__ Web-Application Development_) )_ > > > (((\ \> /_>Cable Modem Network Management System <_\ > > ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > > > \ / \ / > > >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ > > >/ / cellphone: (+63 919) 399-4742 \ \ > > > / / email: [EMAIL PROTECTED]\ \ > >
AW: too many open files
Hi, My applet ist just a java-"application" and is doing nothing with files, the only files I open directly, I close them. In DEBUG of tomcat, you can see, it's just loading classes and after a while (not long) doing nothing else then opening different windows in my applet (new classes are loaded) tomcat can't anymore... On my Solaris there is a soft-limit of 64 open files and an hard limit of 1024 I could add some more to the soft-limit, but I thought, that jvm or the classloader of tomcat should just work There are other people that also did last-test with their applet and had the same problem, and just on solaris, but not on linux or others... Thanx Raffaella > -Ursprüngliche Nachricht- > Von: John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 24. Juli 2001 10:38 > An: [EMAIL PROTECTED] > Betreff: Re: too many open files > > "Tognolini Raffaella, CH" wrote: > > > > Hi, > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > Browser Netscape > > > > After a while that my applet is running and tomcat loading classes, I > > receive > > following exception, continously and tomcat dies. Do you have an idea? > > Is like tomcat can't load any more classes: > > What's the maximum number of open files for Solaris 2.6? How many open > files are there? > > What does your applet do? Does it open files and not close them after > they are read? > > > Cheers, > > > John Clark > -- > /) John Clark Naldoza y Lopez (\ > / )Software Design Engineer III ( \ > _( (__ Web-Application Development_) )_ > (((\ \> /_>Cable Modem Network Management System <_\( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > \ / \ / >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ >/ / cellphone: (+63 919) 399-4742 \ \ > / / email: [EMAIL PROTECTED]\ \
too many open files
Hi, Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 Browser Netscape After a while that my applet is running and tomcat loading classes, I receive following exception, continously and tomcat dies. Do you have an idea? Is like tomcat can't load any more classes: 2001-07-23 11:53:55 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8089] ignored exception: ja va.net.SocketException: Too many open files - java.net.SocketException: Too many open files at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) at java.net.ServerSocket.implAccept(ServerSocket.java:199) at java.net.ServerSocket.accept(ServerSocket.java:181) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java) 2001-07-23 11:53:55 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8089] ignored exception: ja va.net.SocketException: Too many open files - java.net.SocketException: Too many open files at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) at java.net.ServerSocket.implAccept(ServerSocket.java:199) at java.net.ServerSocket.accept(ServerSocket.java:181) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java) I saw some other people having this problem on this mailing-list, but the solution was to go to 3.2.2..and is where I am. Thanx a lot Raffaella _ Raffaella Tognolini * [EMAIL PROTECTED]