users@glassfish.java.net

Re: LB on httpd

From: Daniel Cavalcanti <dhcavalcanti_at_gmail.com>
Date: Fri, 20 Apr 2007 14:53:28 -0400

Never mind. I figured out.
thanks,
Daniel.

On 4/20/07, Daniel Cavalcanti <dhcavalcanti_at_gmail.com> wrote:
>
> Hi Jan,
> Yes, build 43 works (partly).
> However, the load-balancer only works for applications deployed to the
> "server" target. If I create the jvm option to a cluster target, the ajp
> plugin does not work. When I look at server.log, the ajp socket log
> message does not show up indicating the socket is not listening on that
> port.
>
> So, my question is how can I setup the plugin to load-balance an
> application whose target is a cluster?
> In other words, instead of executing the command:
> asadmin create-jvm-options --port 11048 -
> Dcom.sun.enterprise.web.connector.enableJK=8009
>
> I want execute
> asadmin create-jvm-options --port 11048 --target my-cluster -
> Dcom.sun.enterprise.web.connector.enableJK=8009
> Assume that my cluster has one instance...
>
> thanks,
> Daniel.
>
> On 4/19/07, Jan Luehe < Jan.Luehe_at_sun.com> wrote:
> >
> > Hi Daniel,
> >
> > Daniel Cavalcanti wrote On 04/19/07 01:56 PM,:
> >
> > > Hello,
> > > I'm trying to setup load-balancer using Apache httpd by following the
> > > instructions from Daniel's Blog:
> > >
> > http://blogs.sun.com/dadelhardt/entry/loadbalancing_with_mod_jk_and_glassfish
> > > <http://blogs.sun.com/dadelhardt/entry/loadbalancing_with_mod_jk_and_glassfish
> > >
> > > But I'm getting some errors:
> > >
> > > [#|2007-04-19T16:39:
> > 57.132-0400|INFO|sun-appserver9.1|org.apache.jk.common.ChannelSocket|_ThreadID=10
> > ;_ThreadName=main;|JK:
> > > ajp13 listening on /0.0.0.0:8009|#]
> > > [#|2007-04-19T16:45:
> > >
> > 15.758-0400|WARNING|sun-appserver9.1|org.apache.jk.core.MsgContext|_ThreadID=27
> > ;_ThreadName=TP-Processor2;_RequestID=9500d515-7a36-44a3-a87f-4c43c966d2c6;|Unable
> > > to send headers
> > > java.io.IOException: Buffer overflow, no sink -1 32
> >
> >
> > This regression was fixed in b43, see
> >
> > https://glassfish.dev.java.net/issues/show_bug.cgi?id=2780
> >
> > Can you please use this build?
> >
> >
> > Jan
> >
> > > at
> > > org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:401)
> > > at
> > > org.apache.tomcat.util.buf.C2BConverter.flushBuffer (C2BConverter.java
> > :224)
> > > at org.apache.tomcat.util.buf.C2BConverter.convert
> > > (C2BConverter.java:215)
> > > at
> > > org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:289)
> > > at org.apache.jk.core.MsgContext.action(MsgContext.java:267)
> > > at org.apache.coyote.Response.action (Response.java:208)
> > > at org.apache.coyote.Response.sendHeaders(Response.java:403)
> > > at
> > > org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:340)
> > > at org.apache.coyote.tomcat5.OutputBuffer.close
> > > (OutputBuffer.java:307)
> > > at
> > > org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(
> > CoyoteResponse.java:564)
> > > at
> > > org.apache.coyote.tomcat5.CoyoteAdapter.afterService(
> > CoyoteAdapter.java:301)
> > > at
> > > org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java
> > :284)
> > > at
> > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
> > > at
> > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java :283)
> > > at
> > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
> > > at
> > > org.apache.jk.common.ChannelSocket.processConnection(
> > ChannelSocket.java:703)
> > > at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
> > > (ChannelSocket.java:895)
> > > at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:653)
> > > at java.lang.Thread.run(Thread.java:595)
> > > |#]
> > > [#|2007-04-19T16:45:
> > 15.760-0400|WARNING|sun-appserver9.1|org.apache.jk.common.ChannelSocket|_ThreadID=27
> > >
> > ;_ThreadName=TP-Processor2;_RequestID=9500d515-7a36-44a3-a87f-4c43c966d2c6;|processCallbacks
> > > status 2|#]
> > >
> > > Could some one help?
> > > thanks,
> > > Daniel Cavalcanti
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
> >
>