Thanks Jim for sharing that. I went through my app and only found two places where
(due to
a lack of return; after a forward) what you said could happen. However I don't think
that is
what was causing it because in both cases they were just inside catch (SQLException )
blocks
and my app didn't ever execute those blocks when it's giving me the Too Many Concurrent
Requests message. Also, unlike some others and you, I'm NOT getting the
error (jcp) jcp-0 caught Throwable while swapping, exiting [java.lang.OutOfMemoryError]
error that some who have reported this problem are getting.
I've seen this same complaint reported enough on Allaire's Jrun Support Forum, and no
answers there that I think address my problem, that I'm afraid since I only have a
week to
go live, I'm going to have to fall back to Jrun2.3. Really disappointing since 3.0
seems so
fast and since I've invested so much time (and money) getting it ready.
Still hoping Allaire will come through with an answer.
Lynn
"Moore, Jim" wrote:
> i was getting a very similar error message a while back with jrun 3 on nt
> with iis. Turned out i was trying to forward the request to two jsp pages
> (both of which obviously were trying to write to the output stream).
>
> Basically it looked something like:
>
> if (foo) {
> RequestDispatcher rd = request.getRequestDispatcher("1.jsp");
> rd.forward();
> }
>
> RequestDispatcher rd = request.getRequestDispatcher("2.jsp");
> rd.forward();
>
> I think the problem was that 2.jsp was trying to write to an output stream
> that 1.jsp had already returned. And it took me forever to find it with the
> rather uniformative error in the event log:
>
> 07/17 16:11:18 error (jcp) jcp-0 caught Throwable while swapping, exiting
> [java.lang.OutOfMemoryError]
> java.lang.OutOfMemoryError
> <<no stack trace available>>
>
> and in the browser:
>
> Browser error (event log error above):
> Too many concurrent requests
> jcp.endpoint.main.max.threads exceeded
>
> Hope this helps...
>
> --jim
>
> -----Original Message-----
> From: Lynn Walton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 01, 2000 2:12 AM
> To: Jrun Mailing LIst
> Subject: Again, Serious ... Too Many Concurrent Requests ...
>
> Well, I definitely have a major problem.
>
> I adjusted my jrun3 default server which is using Stronghold, Solaris
> 2.8, and Sun's Solaris_JDK_1.2.2_05a to have
> user.javaargs=-Xms64m -Xmx384m -verbosegc
>
> I am the only one testing one app (one that has run just fine for 8
> months on Jrun2.3.3 with Sun's Solaris_JDK1.2.2_04 ) and after only
> making a few requests since starting the jrun server I get:
>
> Too many concurrent requests
> jcp.endpoint.main.max.threads exceeded
>
> The endpoint is the default of 1000.
> The log files show:
> Operating System: SunOS Version 5.8
> Java Virtual Machine: build Solaris_JDK_1.2.2_05a, native threads,
> sunwjit from Sun Microsystems Inc.
> JRun 3.0 3.00.3694 Starting default...
> Current Locale: en
> GC[0] in 9 ms: (64Mb, 95% free) -> (64Mb, 97% free)
> Loading scheduler
> Loading logging
> GC[0] in 17 ms: (64Mb, 95% free) -> (64Mb, 97% free)
> GC[0] in 5 ms: (64Mb, 94% free) -> (64Mb, 97% free)
> GC[0] in 6 ms: (64Mb, 94% free) -> (64Mb, 96% free)
> GC[0] in 14 ms: (64Mb, 94% free) -> (64Mb, 96% free)
> GC[0] in 18 ms: (64Mb, 94% free) -> (64Mb, 96% free)
> javax.servlet.ServletException: JSP Page threw a non-Exception
> Throwable.
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at
> javax.servlet.ServletException.<init>(ServletException.java:132)
> at
> jrun__ssl__login__securelylogged2ejsp1d._jspService(jrun__ssl__login__secure
> lylogged2ejsp1d.java:110)
>
> at
> allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
> at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> at allaire.jrun.servlet.JRunSE.runServlet(Compiled Code)
> at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
> )
>
> at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
> at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> at allaire.jrun.servlet.JRunSE.runServlet(Compiled Code)
> at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> a:88)
>
> at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
>
> at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
> at allaire.jrun.ThreadPool.run(Compiled Code)
> at allaire.jrun.WorkerThread.run(Compiled Code)
> GC[0] in 20 ms: (64Mb, 93% free) -> (64Mb, 95% free)
> GC[1] in 79 ms: (64Mb, 95% free) -> (64Mb, 96% free)
> GC[1] in 26 ms: (64Mb, 96% free) -> (64Mb, 96% free)
> GC[1] in 24 ms: (64Mb, 96% free) -> (64Mb, 96% free)
> GC[1] in 32 ms: (64Mb, 96% free) -> (64Mb, 96% free)
>
> AND The event log shows:
>
> 08/01 01:47:12 info (JRun) Loading monitor
> 08/01 01:47:12 info (JRun) Loading license
>
> 08/01 01:47:12 info (license) Enabling unlimited concurrency for
> Professional
> 08/01 01:47:12 info (JRun) Loading control
> 08/01 01:47:12 info (control) control listening on 127.0.0.1:50001
> 08/01 01:47:12 info (JRun) Loading ejb
> 08/01 01:47:12 info (JRun) Loading jms
> 08/01 01:47:12 info (JRun) Loading jndi
> 08/01 01:47:12 info (JRun) Loading jdbc
> 08/01 01:47:12 info (JRun) Loading web
> 08/01 01:47:12 info (web) web listening on *:8100
> 08/01 01:47:12 info (JRun) Loading mail
> 08/01 01:47:12 info (JRun) Loading url
> 08/01 01:47:12 info (JRun) Loading default-app
> 08/01 01:47:12 info (default-app) Starting default-app: Default User
> Application - Default application for getting started
> 08/01 01:47:12 info (default-app) Loading scheduler
> 08/01 01:47:12 info (default-app) Loading logging
> 08/01 01:47:12 info (JRun) Loading session
> 08/01 01:47:12 info (session) Loading persistence storage provider
> 'file'
> 08/01 01:47:12 info (JRun) Loading authentication
> 08/01 01:47:12 info (JRun) Loading propfile
> 08/01 01:47:12 info (JRun) Loading jsp
> 08/01 01:47:13 info (JRun) Loading file
> 08/01 01:47:13 info (JRun) PinServlet: init
> 08/01 01:47:13 info (JRun) default-app Ready
> 08/01 01:47:13 info (JRun) Loading demo-app
> 08/01 01:47:13 info (demo-app) Starting demo-app: JRun Demo - JRun Demo
> 08/01 01:47:13 info (demo-app) Loading scheduler
> 08/01 01:47:13 info (demo-app) Loading logging
> 08/01 01:47:13 info (JRun) Loading session
> 08/01 01:47:13 info (session) Loading persistence storage provider
> 'file'
> 08/01 01:47:13 info (JRun) Loading authentication
> 08/01 01:47:13 info (JRun) Loading propfile
> 08/01 01:47:13 info (JRun) Loading jsp
> 08/01 01:47:13 info (JRun) Loading file
> 08/01 01:47:13 info (JRun) demo-app Ready
> 08/01 01:47:13 info (JRun) Loading jcp
> 08/01 01:47:13 info (jcp) jcp listening on 127.0.0.1:8080
> 08/01 01:47:13 info (JRun) default Ready
> 08/01 01:47:17 info (JRun) jrun__common__messages__message2ejsp1c: init
> 08/01 01:47:19 info (JRun) jrun__ssl__login__securelylogged2ejsp1d: init
>
> 08/01 01:47:19 info (JRun) jrun__common__errors__error2ejsp18: init
> 08/01 01:47:21 info (JRun) jrun__common__errors__error2ejsp18: destroy
> 08/01 01:47:21 info (JRun) jrun__common__errors__error2ejsp18: init
> 08/01 01:47:23 info (JRun)
> EDU.franklin.courses.CourseLoginForwarderServlet: init
> 08/01 01:47:23 info (JRun) jrun__ssl__login__login2ejsp14: init
> 08/01 01:47:23 info (JRun) jrun__ssl__login__showLoginErrors2ejsp1e:
> init
> 08/01 01:47:38 info (JRun) invoker: init
> 08/01 01:47:38 info (JRun) CourseLoginServlet: init
>
> SO, I really don't see how it could be my app. It doesn't look like the
> JVM is out of memory and it doesn't look like it could possibly have
> 1000 threads going.
>
> Please Help.
> Lynn
>
> ----------------------------------------------------------------------------
> --
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with 'unsubscribe'
> in the body.
> ------------------------------------------------------------------------------
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
>body.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.