RE: Using shutdown script for different port

2004-09-30 Thread Dhruva B. Reddy
Back to my original issue--I was having trouble shutting down Tomcat
when the shutdown service was listening to a non-default port, but have
since sorted it out.

After going through the source code, I found that when processing the
shutdown command, the Bootstrap system just uses the configuration in
CATALINA_BASE, so all you need to do change the port in server.xml, and
make sure your shutdown script references the correct directory
hierarchy.

Thanks,
Dhruva


--- Steve Kirk [EMAIL PROTECTED] wrote:

 
 OK.  I didn't realise that, although I suppose it's obvious in
 hindsight.  I
 just saw the potential for it to go wrong if that localhost check
 failed,
 and disabled it.  I didn't actually test whether it could be shutdown
 from
 another host.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday 29 September 2004 21:26
  To: Tomcat Users List
  Subject: RE: Using shutdown script for different port
  
  
  
  Hi,
  You must have a weird setup... The shutdown socket only accepts
  connections from its localhost.
  
  Yoav Shapira
  Millennium Research Informatics
  
  
  -Original Message-
  From: Steve Kirk [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 29, 2004 4:22 PM
  To: 'Tomcat Users List'
  Subject: RE: Using shutdown script for different port
  
  
  To be clear, the default setup _does_ allow shutdown using 
  telnet from
  any
  machine unless your host or network security blocks it.  Or at
 least
  that
  was the case when I installed mine.
  
  I have the shutdown feature disabled on my setup because I 
  didn't like
  the
  possible security hole. However I suggested it because I imagined
 you
  had
  already secured the shutdown port using firewalling but were
 looking
  for a
  way to stop each instance from the localhost.
  
   -Original Message-
   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
   Sent: Wednesday 29 September 2004 21:11
   To: Tomcat Users List
   Subject: RE: Using shutdown script for different port
  
  
  
   Hi,
   Of course, you can only do this telnet from the local machine ;)
   Otherwise we'd have a nice security hole ;)
  
   Yoav Shapira
   Millennium Research Informatics
  
  
   -Original Message-
   From: Steve Kirk [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, September 29, 2004 4:10 PM
   To: 'Tomcat Users List'
   Subject: RE: Using shutdown script for different port
   
   
   You can certainly telnet to the shutdown port and send 
  the shutdown
   string.
   You could do this using a scripting tool or simple Java class.
 For
   example,
   telnet to localhost 8015 then send the string shutdown, or
  whatever
   string
   is configured in server.xml for that port.
   
-Original Message-
From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
Sent: Wednesday 29 September 2004 20:21
To: tomcat
Subject: Using shutdown script for different port
   
   
I am running two instances of Tomcat 4.1 on one machine, from
 a
   common
installation (i.e., different CATALINA_BASE).  I have 
  the shutdown
service  for each instance listening on a different port (the
   original
instance on the default port of 8005, and the second instance
on 8015).
   
Getting the instances to listen on a different port was 
  easy, but
  I
can't seem to find any information on how to actually specify
 a
non-default port in the shutdown script.  Some documentation
that I did
manage to find suggested the following would work:
   
shutdown.sh port 8015
   
but I get the usage message when I try that.
   
Can anyone tell me how to do this?
   
Thanks,
Dhruva
   
   
   
___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
   
   
   
 
 -
To unsubscribe, e-mail: 
  [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
   
   
   
  
 

-
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
  
  
  
  
   This e-mail, including any attachments, is a confidential
   business communication, and may contain information that is
   confidential, proprietary and/or privileged.  This e-mail is
   intended only for the individual(s) to whom it is addressed,
   and may not be saved, copied, printed, disclosed or used by
   anyone else.  If you are not the(an) intended recipient,
   please immediately delete this e-mail from your computer
   system and notify the sender.  Thank you.
  
  
   
 
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED

Using shutdown script for different port

2004-09-29 Thread Dhruva B. Reddy
I am running two instances of Tomcat 4.1 on one machine, from a common
installation (i.e., different CATALINA_BASE).  I have the shutdown
service  for each instance listening on a different port (the original
instance on the default port of 8005, and the second instance on 8015).

Getting the instances to listen on a different port was easy, but I
can't seem to find any information on how to actually specify a
non-default port in the shutdown script.  Some documentation that I did
manage to find suggested the following would work:

shutdown.sh port 8015

but I get the usage message when I try that.

Can anyone tell me how to do this?

Thanks,
Dhruva



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems migrating from 4.1.x to 5.0.25

2004-07-08 Thread Dhruva B. Reddy
I have deployed one of our (Struts 1.1 based) applications on 5.0.25
(it currently runs on 4.1.27).  When I try to go to the default page, I
get the stack trace below (displayed in the browser).  Can anyone tell
me if there is anything obvious that I may be missing or should look
for?

Thanks,
Dhruva

java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.init(Ljava/lang/String;ZLjava/lang/String;ZZ)V

org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)

org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:179)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:117)

org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:335)

org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

com.resortquest.mvc.web.filter.ExtensionRequestFilter.doFilter(ExtensionRequestFilter.java:275)

com.resortquest.mvc.web.filter.ActionFilter.doFilter(ActionFilter.java:61)




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDI Resource Lifecycle Question

2004-06-28 Thread Dhruva B. Reddy
I'm trying to tune the connection pool on our installation of Tomcat
4.1.27, and just realized that I'm not sure what happens when you get
the DataSource.

When is the connection pool actually created?

* When Tomcat starts?
* When the web application is started?
* When you request the DataSource from the JNDI service?

If it's created when I request it from the JNDI service, does that mean
that I should only request it when the application starts?

Thanks,
Dhruva



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: verbose gc

2004-02-01 Thread Dhruva B. Reddy
Check out Jeff Tulley's responses to my post OutOfMemoryError with
Seemingly Plenty of Memory.  You may also want to check out Sun's
forums on the Java Virtual Machine.  You will find a host of
information on JVM tuning.

As I said in my post, we would get the OutOfMemoryError about every 24
hours.  I tried setting MaxPermSize to 256MB (haven't been able to
determine the default value for Sun's JVM, but it's 64MB for HP's JVM).
 This sets the size of the permanent generation, into which
longer-lived objects and class definitions are loaded (we have over
3500 classes over multiple web apps).

I wasn't going to say anything to this list without being more certain,
but Tomcat has been running with no problems since Friday afternoon (47
hours as of this writing)--the longest it's lasted all month.

HTH,
Dhruva


--- Mohammed Javid - CTD, Chennai. [EMAIL PROTECTED] wrote:
 Hi,
 
 Thanks for all the help.
 
 We did loadtesting of our application running on tomcat 4.1.27 with
 jdk1.4
 on solaris, we enabled the GC stack to get details of how GC works,
 we ran
 for 1 users with 5 users logging every 30 secs. We set min and
 max heap
 size as 512mb The test ran perfectly for first 2 hours and total heap
 ocupied was only 10448K out of total of  519168K , later as test case
 progessed for around 10 hours the tomcat stopped responding and it
 has
 thrown OutOfMemoryError , but as can be seen from GC output before
 outofmemory error 
 the total heap occupied was only 30846K, though we have lot of more
 space on
 heap still tomcat crashed and give connectiontimeout for remaining
 pages.
 When we see the size occupied from top command , when tomcat is
 started it
 was 622Mb and at time of crash it was 723MB.
 
 We are looking for following clarifications
 1 What could be the reason for tomcat to crash though we have lot of
 heap
 remaining.
 2 Why the memory occupied as seend from top command increased though
 there
 was lot of space on heap
 3 We noticed that though heap has space when size seen from top
 command
 reached 720 to 270 mb tomcat crashes.
 4 How to make tomcat running without crash , certianly heap is not
 problem
 in this case
 5 Is this a known issue, Any optimization to be done to avoid this
 problem.
 
 
 The below is the output of the GC after which we get outofmemory
 error
 
 [GC 55404.101: [DefNew Desired survivor size 2621440 bytes, new
 threshold 31
 (max 31)
 - age   1: 359488 bytes, 359488 total
 - age   2: 314104 bytes, 673592 total
 : 167034K-657K(169600K), 0.2717012 secs] 197223K-30846K(519168K),
 0.2745516 secs]
 java.lang.OutOfMemoryError: unable to create new native thread
 at java.lang.Thread.start(Native Method)
 at

org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.j
 ava:1178)
 at

org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:12
 62)
 at

org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.
 java:937)
 at

org.apache.catalina.connector.http.HttpConnector.createProcessor(HttpConnect
 or.java:868)
 at

org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java:1075
 )
at java.lang.Thread.run(Thread.java:534)
 
 
 thanks and regards,
 Javid
 
   -Original Message-
  From:   Mohammed Javid - CTD, Chennai.  
  Sent:   Wednesday, January 14, 2004 10:00 PM
  To: '[EMAIL PROTECTED]'
  Subject:RE: verbose gc
  
  we are using tomcat 4.1 withjdk1.3, we have folowing clarifications
  
  1) [Full GC 34521K-15504K(38328K), 0.5953540 secs]
  [GC 27533K-16335K(38328K), 0.0396336 secs]
  
  is the statements got in catalina.out by adding -server -verbose:gc
  in
  catalina.sh
  
  2) what does the above statements got in catalina.out means, is
 garbage
  collection active. 
  When i execute top command on solaris and see the memory it shows 
 size
  and resisdent memory , what is the diference between the two.
  
  3) I see that gc statements are logged to catalina.out but the
 memory
  usage keeps increasing, does it mean there is problem with
  garbage collection,
  
  4) can we get more information like how many obejcts created /
 objects
  destroyed during a gc run, what options to pass to get that
 information
  
  thanks
   -Original Message-
  From:   Mohammed Javid - CTD, Chennai.  
  Sent:   Wednesday, January 14, 2004 2:18 PM
  To: '[EMAIL PROTECTED]'
  Subject:verbose gc
  
  Hi,
  
When we give verbose:gc in cataline.sh during startup of tomcat
  where does
  the gc information get logged.
I am not seeing any information in catalina.out.
  
  thanks.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: OutOfMemory exception explanation?

2004-01-27 Thread Dhruva B. Reddy
I've looked for a free profiler, but was unable to find one (as in beer
or speech).  If you can deal with the barrage of sales calls, you can
download a trial version of:

JProbe: http://quest.com/jprobe/try.asp
OptimizeIt:
http://borland.com/products/downloads/download_optimizeit.html

And...well, I forgot the third one I knew about.

-d

--- MURAT BALKAS [EMAIL PROTECTED] wrote:
 
 
 
 
 
 Hi,
 
   I need some info about these memory profiler's. Is there any
 free and
 easy-to-integrate-to-tomcat memory profiler?
 
   Thanks...
 
 Murat
 
 
 
  
  
   Filip Hanik  
  
   [EMAIL PROTECTED]To:   Tomcat
 Users List [EMAIL PROTECTED] 
 
   om  cc:   
  
Subject:  RE:
 OutOfMemory exception explanation?   
 
   27.01.2004 01:35   
  
   Please respond to  
  
   Tomcat Users  
  
   List  
  
  
  
  
  
 
 
 
 
 download a memory profiler, should give you the exact place where
 memory is
 being wasted. probably in your own webapp
 
 -Original Message-
 From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:43 AM
 To: Tomcat Users List
 Subject: OutOfMemory exception explanation?
 
 
 We've been getting these every now and then:
 
 Jan 23, 2004 5:03:30 PM org.apache.tomcat.util.net.TcpWorkerThread
 runIt
 SEVERE: Exception in acceptSocket
 java.lang.OutOfMemoryError
 Jan 23, 2004 5:03:30 PM
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
 SEVERE: Caught exception executing
 [EMAIL PROTECTED], terminating thread
 java.lang.IllegalStateException: Terminating thread
 at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
 2)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 .java:619)
 at java.lang.Thread.run(Thread.java:536)
 
 
 
 Once this occurrs, I have to stop / start the entire Tomcat container
 in
 order to allow this particular webapp to function again.  It only
 effects a particular servlet mapping for a  given webapp.  Does
 anyone
 have any suggestions on how to resolve?  We're running version
 4.1.24..
 Any leads would be great, thanks.
 
 -Art
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemoryError with Seemingly Plenty of Memory

2004-01-27 Thread Dhruva B. Reddy
Well, I have made an assumption in most cases.  The OutOfMemoryError is
logged with no timestamp to $CATALINA_HOME/logs/catalina.out.  We have
a script that periodically (every 15 minutes) hits the applications and
notifies us of any error response (either status above 400 or the word
ERROR in the content).  When I get such a notification, I immediately
check the log file (catalina.out) for the OutOfMemoryError, and it is
always near or at the bottom of the file.

I know that in and of itself is no indication of when the error
actually occurs.  The applications themselves are set up to use syslog
(through Log4J).  Sometimes the OutOfMemoryError is logged here with a
timestamp, and always occurs within minutes of my notification.

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 
 Although the possibility of a memory leak (sorry--unintended object
 retention) has not been completely ruled out (yes, I'm running the
 applications through a profiler), I'm quite puzzled that this
 problem
 would occur when, by all indications, memory use is nowhere near the
 limit.
 
 How do you know when the OutOfMemoryError occurred?
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemoryError with Seemingly Plenty of Memory

2004-01-27 Thread Dhruva B. Reddy
Hmmm...we don't do hot deploys, but the different generations are
definitely something to look at.

Thanks!
Dhruva

--- Jeff Tulley [EMAIL PROTECTED] wrote:
 A while back somebody mentioned that if you continuously redeploy a
 web
 application, the symptoms you are mentioning occur.  This is because
 of
 all of the objects that are stored in the permanent generation
 memory.
  This permanent generation runs out of space, even though the new
 generation and old generation heaps still have room to grow.  (The
 permanent generation's size is a fixed percentage of the total
 memory). 
 I do not know if this is something that can or is fixed in the most
 recent builds and latest major version (5) of Tomcat.
 
 On NetWare, we have a view into the memory where we can see how big
 the
 perm gen is and what percentage of it is allocated.  I do not know if
 such a thing exists on other platforms though.  If it does, I
 certainly
 have not yet found it.
 
 Searching the archives (at http://marc.theaimsgroup.com ), it looks
 like it could have something to do with the classloader layout of
 your
 application:
 
 http://marc.theaimsgroup.com/?l=tomcat-userm=107046034505454w=2
 
 
 Although the possibility of a memory leak (sorry--unintended object
 retention) has not been completely ruled out (yes, I'm running the
 applications through a profiler), I'm quite puzzled that this
 problem
 would occur when, by all indications, memory use is nowhere near the
 limit.
 
 
 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemoryError with Seemingly Plenty of Memory

2004-01-26 Thread Dhruva B. Reddy
I am troubleshooting an issue we've been having with Tomcat 4.1.27.  We
have several websites on one instance, and it regularly throws an
OutOfMemoryError, requiring a restart of Tomcat.

Some observations (warning--this is a bit long):

* The box runs two 2.8GHz Pentium 4 Hyperthreaded Xeons, and has 2GB of
RAM (recently upgraded from 1GB).
* The OutOfMemoryError never contains a message (I believe an
OutOfMemoryError is thrown with a message when the java process has
used the maximum number of threads).
* There is a single instance of Tomcat, housing 20 applications
(including the ones that come with the standard distribution of Tomcat,
examples, tomcat-docs, etc.--these apps see no traffic).
* We have a servlet that is hit every five minutes.  It calls
Runtime.freeMemory(), Runtime.totalMemory() and Runtime.maxMemory(),
after calling Runtime.gc(). This information is graphed (free, total -
free, both vs. time).  According to this graph, there is always plenty
of memory available (I have seen the amount of free memory get quite
low--below 1MB, but never when the problem occurs).
* We're running Tomcat 4.1.27, Redhat Linux 7.3, Sun JDK 1.4.1_05.
* Peak traffic is between 10:00 and 22:00 everyday.  The heaviest day
is Monday and the lightest Saturday.
* Together, the applications service an average of 1600+ requests per
hour.
* Before the memory upgrade, we were running an initial heap size of
100MB, and max of 768MB.  We are now running an initial heap size of
768MB and max of 1536MB.
* Uptime used to be about 100 hours, but recently has fallen to 24
hours.  This change does not coincide with any configuration change.  I
have not determined if there is a coincident change in traffic
patterns.  The memory upgrade has had no effect on uptime.
* Before the memory upgrade, when the problem occurred I would find the
java process spinning (i.e., processor use according to top was 99%),
and it appeared to be using some swap space.  Since the memory upgrade,
no swap space has been used, and the spinning has not been observed.
* At the time that the problem occurs, top reports that java is using
500-600MB of RAM.  This has not changed since the memory upgrade.
* Tomcat is set up not to refresh the context automatically.  Although
it is set up to refresh JSPs, we do not do this.  No changes are ever
made without restarting Tomcat.
* We have the JSP compiler set up to fork (i.e., use another instance
of the JVM).
* The problem almost always occurs during hours of heavy use, although
it has also been observed on Saturdays (the day of lightest use).
* Diskspace use is nowhere near capacity. 
* For a few days, we ran Tomcat with verbose garbage collection (the
verbose:gc flag).  The problem seemed to occur just after a full
garbage collection.

Although the possibility of a memory leak (sorry--unintended object
retention) has not been completely ruled out (yes, I'm running the
applications through a profiler), I'm quite puzzled that this problem
would occur when, by all indications, memory use is nowhere near the
limit.

Any insights or other things to look at would be greatly appreciated.

Thanks,
Dhruva


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory Use Creeping Up In Steady-State

2003-12-10 Thread Dhruva B. Reddy
I was mistaken--the increase is actually about 1-2KB/s.  I arrive at
this by eyeballing the graph (which is updated once a second).  Still
seems rather high, though.

I'm not sure I understand your question, Yoav.  When I say
steady-state, I mean that Tomcat is running, all applications have
initialized and no requests are being sent.

Thanks,
-d

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 4KB/second is a high rate -- what's using the CPU during this
 steady-state, no load time?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 8:00 PM
 To: Tomcat Users List
 Subject: RE: Memory Use Creeping Up In Steady-State
 
 if it jumps down to the same level, there is no memory creep.
 load simple means more objects, and more memory
 
 Filip
 
 -Original Message-
 From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 3:09 PM
 To: tomcat
 Subject: Memory Use Creeping Up In Steady-State
 
 
 We are running a web app on Tomcat 4.1.29, through OptimizeIt.  We
 don't see any signs of a memory leak (i.e., memory actually
 allocated
 to objects drops down to the same level upon GC) when the
 application
 is under load, but when it is not under load, the memory usage
 (i.e.,
 the amount of memory actually allocated to objects) creeps up around
 the rate of 4KB/second.  Again, it drops down to the same level upon
 GC, but I wonder what could account for this.
 
 Has anyone noticed this behavior?
 
 Thanks,
 -d
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Memory Use Creeping Up In Steady-State

2003-12-09 Thread Dhruva B. Reddy
We are running a web app on Tomcat 4.1.29, through OptimizeIt.  We
don't see any signs of a memory leak (i.e., memory actually allocated
to objects drops down to the same level upon GC) when the application
is under load, but when it is not under load, the memory usage (i.e.,
the amount of memory actually allocated to objects) creeps up around
the rate of 4KB/second.  Again, it drops down to the same level upon
GC, but I wonder what could account for this.

Has anyone noticed this behavior?

Thanks,
-d

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best JVM for Tomcat

2003-12-04 Thread Dhruva B. Reddy
Were these crashes, by any chance, preceded by OutOfMemoryError's?


--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 I've seen exactly the same behavior as Senor Alibert.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Aymeric Alibert [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 03, 2003 4:23 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Best JVM for Tomcat
 
 We are running Tomcat under Solaris 8 and tried to use the '-server'
 option.The option improved greatly the performances, but
 unfortunately
 load testing showed that the JVM would crash systematically under
 heavy
 load. No problem running with the '-client' option.
 
 Aymeric.
 
  [EMAIL PROTECTED] 12/03/03 03:08PM 
 Can you tell us more about issues using -server mode?
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
  Howdy,
  I use Sun's latest on various platforms (Solaris 8, 9, SuSe,
 Intel)
  without a problem for both tomcat 4 and 5.  The only caveat is the
  -server mode, which used to reduce stability.
 
  I knew there would be a jRockit response from Senor Cekvenich even
  before expanding this thread ;)
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: David Rees [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, December 03, 2003 7:09 AM
  To: Tomcat Users List
  Subject: Re: Best JVM for Tomcat
  
  On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote:
  
   What is the best version of J2SDK to run Tomcat 4.1.29 over
 Linux?
  
  On Linux, I've been using the latest from Sun, 1.4.2_02 without
 any
  issues.  There may be others which are faster, but performance
  hasn't
  been an issue for me.
  
  -Dave
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is confidential,
  proprietary and/or privileged.  This e-mail is intended only for
 the
  individual(s) to whom it is addressed, and may not be saved,
 copied,
  printed, disclosed or used by anyone else.  If you are not the(an)
  intended recipient, please immediately delete this e-mail from
 your
  computer system and notify the sender.  Thank you.
 
 
 

-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.yahoo.com/
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best JVM for Tomcat

2003-12-03 Thread Dhruva B. Reddy
Can you tell us more about issues using -server mode?

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 I use Sun's latest on various platforms (Solaris 8, 9, SuSe, Intel)
 without a problem for both tomcat 4 and 5.  The only caveat is the
 -server mode, which used to reduce stability.
 
 I knew there would be a jRockit response from Senor Cekvenich even
 before expanding this thread ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: David Rees [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 03, 2003 7:09 AM
 To: Tomcat Users List
 Subject: Re: Best JVM for Tomcat
 
 On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote:
 
  What is the best version of J2SDK to run Tomcat 4.1.29 over Linux?
 
 On Linux, I've been using the latest from Sun, 1.4.2_02 without any
 issues.  There may be others which are faster, but performance
 hasn't
 been an issue for me.
 
 -Dave
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error -The requested service (Servlet TkTld is currently unavailable) is not currently available.

2003-12-02 Thread Dhruva B. Reddy
This usually means that for some reason the web application containing
this servlet did not load successfully.

--- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 
 Hi
 
 I'm trying to run a servlet and I get this error in the access log:
 [02/Dec/2003:12:11:49 +0200] GET /newer/Titled HTTP/1.1 503 788
 
 and in the browser I get:
 The requested service (Servlet TkTld is currently unavailable) is not
 currently available.
 
 please advise,
 
 
 Regards,
 
 Yuval Zantkeren
 
 Domain The Net Technologies Ltd.
 www.DomainTheNet.com
 
 “This email message and any attachments hereto are intended only for
 use by
 the addressee(s) named above, and may contain legally privileged
 and/or
 confidential information. If you are not the intended addressee, you
 are
 hereby kindly notified that any dissemination, distribution or
 copying of
 this email and any attachments hereto is strictly prohibited. If you
 have
 received this email in error, kindly delete it from your computer
 system,
 and notify us at the telephone number or email address appearing
 above.
 Thank you
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context/DefaultContext Question

2003-12-02 Thread Dhruva B. Reddy
Thanks to all who responded to my OutOfMemoryError post.  Among other
things, it was suggested that I look at the reloadable attribute for
the context definition.

We define a DefaultContext in server.xml, with the reloadable
attribute explicitly set to false.  We also have, for each application,
a separate context definition file, for which the reloadable
attribute is explicitly set to true.

I'm a little confused about these two work together.  We have a JNDI
resource set up in the DefaultContext for e-mail (see the
mail/Session example in the JNDI Resources HOWTO) that is actually
called mail/Session, with the mail.smtp.host parameter set to
localhost.  In the application-specific context, this same resource
is defined by the same name, but with mail.smtp.host set to a
different value.  The application always uses the value defined in the
DefaultContext.  Is this because the same name is being used, and once
something is defined in the DefaultContext, it cannot be overridden by
an app-specific Context?

Going back to the reloadable attribute, is each context that sets
this  overriding the value in DefaultContext?

Thanks,
Dhruva

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error -The requested service (Servlet TkTld is currently unavailable) is not currently available.

2003-12-02 Thread Dhruva B. Reddy
From my experience, this is likely due to some sort of configuration
error for that application.  You'll have to look in the logs for a clue
as to what it could be.

--- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 How do I reload it?
 
 Regards,
 
 Yuval Zantkeren
 
 Domain The Net Technologies Ltd.
 81 Sokolov St.
 Ramat-Hasharon
 Israel 47238
 Tel: 972-3-7600500
 Fax: 972-3-7600505
 www.DomainTheNet.com
 
 This email message and any attachments hereto are intended only for
 use by
 the addressee(s) named above, and may contain legally privileged
 and/or
 confidential information. If you are not the intended addressee, you
 are
 hereby kindly notified that any dissemination, distribution or
 copying of
 this email and any attachments hereto is strictly prohibited. If you
 have
 received this email in error, kindly delete it from your computer
 system,
 and notify us at the telephone number or email address appearing
 above.
 Thank you
 
 
 -Original Message-
 From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 2:37 PM
 To: Tomcat Users List
 Subject: Re: Error -The requested service (Servlet TkTld is currently
 unavailable) is not currently available.
 
 
 This usually means that for some reason the web application
 containing
 this servlet did not load successfully.
 
 --- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 
  Hi
 
  I'm trying to run a servlet and I get this error in the access log:
  [02/Dec/2003:12:11:49 +0200] GET /newer/Titled HTTP/1.1 503 788
 
  and in the browser I get:
  The requested service (Servlet TkTld is currently unavailable) is
 not
  currently available.
 
  please advise,
 
 
  Regards,
 
  Yuval Zantkeren
 
  Domain The Net Technologies Ltd.
  www.DomainTheNet.com
 
  This email message and any attachments hereto are intended only
 for
  use by
  the addressee(s) named above, and may contain legally privileged
  and/or
  confidential information. If you are not the intended addressee,
 you
  are
  hereby kindly notified that any dissemination, distribution or
  copying of
  this email and any attachments hereto is strictly prohibited. If
 you
  have
  received this email in error, kindly delete it from your computer
  system,
  and notify us at the telephone number or email address appearing
  above.
  Thank you
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now
 http://companion.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemoryError

2003-12-01 Thread Dhruva B. Reddy
We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK
1.4.1_02 (with 512MB allocated to it)  The box has 1GB of RAM, 2GB of
swap space, and four Xeon processors.

This error seems to occur during periods of low load (like during the
Thanksgiving holiday), after which Tomcat exits.  According to the
calls Runtime.freeMemory() and .totalMemory(), it comes nowhere near
using that much (we track it every five minutes by hitting a servlet
that calls these methods).

Has anyone seen anything like this?

Thanks,
Dhruva

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Tomcat instances for virtual hosts

2003-09-06 Thread Dhruva B. Reddy
This doesn't really answer your question, but we've found Tomcat to be
quite robust.  You may also want to find out (if you don't already
know) what's bringing the server down.

-d

--- Thomas Eichberger [EMAIL PROTECTED] wrote:
 Hi,
 
 I have Apache 1.3 and Tomcat 4.1.8 on a Red Hat 9 machine.
 
 Apache serves several virutal hosts. We have one Tomcat instance
 running 
 with several web contexts, one context for each virtual host.
 
 Now I would like to change this to have one Tomcat instance for each 
 virtual host (this is necessary because Tomcat sometimes crashes, and
 I 
 don't want all virtual hosts to be down then).
 
 I read a book about Tomcat and searched the Web, but could not find
 out how 
 to do this. What I assume is:
 
 
 In Apache's httpd.conf I have something (after the import of mod_jk):
 
 NameVirtualHost 200.200.200.200 (or whatever)
 
 VirtualHost 200.200.200.200
 ServerName www.xxx.com
 DocumentRoot /tomcat1/webapps/xxx
 JkMount /servlet/* worker1
 JkMount /*.jsp worker1
 JkMount /*.do worker1
 /VirtualHost
 
 VirtualHost 200.200.200.200
 ServerName www.yyy.com
 DocumentRoot /tomcat2/webapps/yyy
 JkMount /servlet/* worker2
 JkMount /*.jsp worker2
 JkMount /*.do worker2
 /VirtualHost
 
 
 Then I will install Tomcat two times, in /tomcat1 and /tomcat2.
 
 The server.xml of each Tomcat contains different ports (for shutdown
 and 
 for the connector for ajp13).
 
 
 The workers.properties should look like:
 
 worker.list=worker1,worker2
 ...
 worker.worker1.port=8009
 worker.worker1.host=localhost
 worker.worker1.type=ajp13
 ...
 worker.worker1.port=8010
 worker.worker1.host=localhost
 worker.worker1.type=ajp13
 
 
 Is this all correct? Should that work?
 
 Thomas
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: load testing tomcat

2003-07-29 Thread Dhruva B. Reddy
I'm mucking my way through this myself.  I use JMeter.  I haven't used
it with SSL, but it appears to support.

Dhruva

--- Mark W. Webb [EMAIL PROTECTED] wrote:
 does anyone have experience load testing tomcat?  I am especially 
 interested in mutually authenticate SSL load testing where tomcat
 runs 
 in conjunction with apache 2.0.47.
 
 What tools are people using to test tomcat/apache?
 
 thank you.
 

 ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size

2003-07-23 Thread Dhruva B. Reddy
I recently discovered these two methods, and was wondering how accurate
they are.

I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK
1.4.1_03-b02.  Nowhere in the startup scripts do I see it specified how
much memory to use (i.e., with the -Xmx flag).  When I call
Runtime.totalMemory(), it gives me 128MB, yet I was under the
impression that the JVM sets aside 64MB by default.

On a possibly unrelated note, is it feasible to force garbage
collection on Tomcat's JVM, either through Tomcat or the JVM itself? 
Googling has revealed only the official answer to this question, but
I've heard that most profilers can do this.

Thanks,
Dhruva

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 
 Thanks Yoav - one last dumb question and I will leave you alone! So
 by
 
 There's more than one in this email ;)  And no question is dumb
 (although that assertion is frequently tested on this list).
 
 adding that to my environment variables list, Tomcat knows to add it
 as
 a
 startup parameter for Java? Or do I need to specify something else
 in
 the
 
 No, it's one of a small set of variables documented in
 $CATALINA_HOME/bin/catalina.sh that tomcat looks for.  Environment
 variables don't need to be on the classpath.
 
 Is there an easy way to check the JVM to
 see the parameters once it is running??
 
 Generally, no, but there are some exceptions.  Although in this
 specific
 case, you can get memory information via Runtime#totalMemory() and
 Runtime#freeMemory().
 
 Yoav Shapira
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to get mod_jk2.so, jkjni.so

2003-06-23 Thread Dhruva B. Reddy
Assuming you're running Apache 2.0, unless you're running 2.0.42 or
2.0.43, the answer to your question is You don't.  Unfortunately, the
server against which these libraries are built must match the *minor*
release on which you will run these libraries.

You will have to download the tomcat connectors package
(http://apache.ttlhost.com/jakarta/tomcat-4/source/tomcat-connectors-4.1.24-src.tar.gz)
for your version of Tomcat and build it yourself.

Dhruva

--- Wolfgang Woger [EMAIL PROTECTED] wrote:
 Hi, 
 where cat i get mod_jk2.so and jkjni.so
 for a reliable download?
 thanks Wolfgang
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't Build mod_jk in Linux

2003-06-10 Thread Dhruva B. Reddy
I'm having trouble getting Tomcat 4.1.18 to run with Apache 2.0.40 on
Redhat Linux 8.0 and this seemed the most appropriate place to turn.

More specifically, I'm trying to build mod_jk.  I get various errors
when running the configure script (depending the arguments that I feed
it).

When I run ./configure --with-java-home=/usr/java/j2sdk1.4.1_01 
--with-tomcat41=/usr/local/jakarta-tomcat-4.1.18

I get the following error:  configure: error: Cannot find any WebServer

So I tried downloading the source code for Apache 2.0, running
./configure --with-java-home=$JAVA_HOME --with-tomcat41=$CATALINA_HOME 
--with-apache2=/home/dreddy/apps/httpd-2.0.40

and got the following error: configure: error: can't locate 
/home/dreddy/apps/httpd-2.0.40/

I can't find any pertinent information on the web, nor can I find a
prebuilt module that will work for me (my understanding is that the
module MUST be built for the minor release of Apache--not just the major
release, i.e., 2.0.40, not just 2.0).

Can anyone tell me what I'm doing wrong, or otherwise point me in the
right direction?

Thanks,
Dhruva


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can't Build mod_jk in Linux

2003-06-10 Thread Dhruva B. Reddy
OK, I got the module to build--thanks for your response.

I have a new problem getting it to run.  I'm trying to get Apache to run
the JVM inprocess.  I see the following error in Apache's log file:

Can't load native library libjvm.so : libjvm.so: cannot open shared object file: No 
such file or directory

I ran ./configure --with-apr-lib=/usr/lib/apr --with-apxs2=/usr/sbin/apxs --with-jni

And then hacked jk/native2/server/apache2/Makefile, changing APACHE2_LIBDIR
to /usr/lib/apr (that was the only way I could get it to find
libapr-0.a).

And copied the files jkjni.so and mod_jk2.so to Apache's modules
directory.

Am I missing anything else?

Some of the documentation I've found mentions a file, mod_jk2.dsp, but
the contents of the file itself suggests it's only for Win32.  Is this
true?

Thanks,
Dhruva

On Tue, Jun 10, 2003 at 06:36:27AM -0400, Eric J. Pinnell wrote:
 What I have found, and this for mod_jk2, is that all it really wants is
 axps.  So ./configure --with-axps2=/path/to/apache2/bin/axps worked for
 me.
 
 Then make.  Then it put mod_jk2.so in the build directory and I copied it
 over to the apache modules directory.
 
 This might work for mod_jk.  I'd give it a try.
 
 -e
 
 On Mon, 9 Jun 2003, Dhruva B. Reddy wrote:
 
  I'm having trouble getting Tomcat 4.1.18 to run with Apache 2.0.40 on
  Redhat Linux 8.0 and this seemed the most appropriate place to turn.
 
  More specifically, I'm trying to build mod_jk.  I get various errors
  when running the configure script (depending the arguments that I feed
  it).
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: install tomat on winZP pro

2003-03-23 Thread Dhruva B. Reddy
I think the original poster meant Windows XP Professional.

Java in general does not deal with spaces in file and directory names 
very well.  Try installing tomcat into a directory with no spaces in the 
 names, such as:

	C:\tomcat

and, of course, set CATALINA_HOME to the same.

-d

Jacob Kjome wrote:
What do you mean?  What are you trying to do with Winzip?

Jake

At 12:28 AM 3/23/2003 -0500, you wrote:

I need to get tomcat4.1.24 working on windows ZP but for some reason it
won't work right.
Here is my CATALINA_HOME = C:\Program Files\Apache Group\Tomcat4.1

I have also added my servlet.jar file to my classpath
here that it is C:\Program Files\Apache
Group\Tomcat4.1\common\lib\servlet.jar
I really need this for a couple of school project I have to get done
So thanks if anyone can help
--
Antoine [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Dhruva B. Reddy
ResortQuest International, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]