Re: Connection pooling

2003-02-24 Thread Arcadius A.

"Arcadius A." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello!
> I'm using Tomcat 4, mod_jk1.2 and Apache 1.3.27 on Redhat
>
> I'm in need of connection pooling example to get me started
> I've had a look at http://jakarta.apache.org/commons/dbcp/api/index.html
> and thougth that a concrete/working  example would make things clearer
>
> Thanks in advance
>

Hello!
I've found an old package at
http://sourceforge.net/project/showfiles.php?group_id=4899

The version 1.4.1 is quite fine and really EASY to install ... (no need to
configure tomacat for connection pooling all you need is to integrate
the package in you app and put the propetries file in your classpath)

Regards.

ARcadius.




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



Connection pooling

2003-02-23 Thread Arcadius A.
Hello!
I'm using Tomcat 4, mod_jk1.2 and Apache 1.3.27 on Redhat

I'm in need of connection pooling example to get me started
I've had a look at http://jakarta.apache.org/commons/dbcp/api/index.html
and thougth that a concrete/working  example would make things clearer

Thanks in advance

Arcadius.




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



Re: Tomcat as a production server?

2003-02-17 Thread Arcadius A.
Hello!

"Ben Ricker" <[EMAIL PROTECTED]> wrote in message
1045494425.1758.7.camel@localhost">news:1045494425.1758.7.camel@localhost...
> You want to put a profiler on that box and see what threads are racing
> away. You can also tell the JVM to throw a traceback of all the threads
> being used, but I for got how exactly :(
>

Please where can I get a free non graphical profiler? (The server doesn't
have any graphic stuff installed)

Thanks.




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




Re: Tomcat as a production server?

2003-02-15 Thread Arcadius A.
the top file can be found here: http://ahouans.sh.cvut.cz/top.txt

Arcadius.




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




Tomcat as a production server?

2003-02-15 Thread Arcadius A.
Hello!
We're using tomcat 4.1.12, Apache 1.3.27 , mod_jk1.2.2 on a redhat 7.3
server ( AMD Duron 1.2GHz, 256 RAM).

The problem is that the server runs quite fine the first few days but
after a week, the server is heavily busy: While the number of tomcat
processes and the memory usage is slightly the same, the CPU usage of each
of the tomcat processes highly increase (  from 0.0% to about 19% for each
of the tomcat processes). so tomcat can no longer respond to requests
from the browser. the only one thing I use to do is restart the
server then everything works fine again
Note that all the  6 java processes shown in the attached file are from
tomcat. And we're using tomcat's default configurations.

Please has anyone coped with this problem before?

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




OutOfmemory Error!

2003-01-31 Thread Arcadius A.
Hello!
I'm running Java applications on a LINUX RedHat server (with 256MB of
RAM)... with Tomcat4.1.12 and SUN's JDK1.4_01

There are 2 applications installed on the server and all of them are using
the same JVM (the JDK1.4_01) and the same Tomcat

App1 uses Tomcat and PostgreSQL

App2 uses Tomcat and a "kind of" Java RDBMS.

I've noticed that  App2 is having some problems running correctly ...( the
kind of Java RDBMS is not correctly running or is having some troubles and
is eating a lot of memory  [96% of system memo is taken by java] ).

By the other side, App1 that use to run quite fine now start throwing
OutOfMemoryError.

My question is:
When App1 reports an "OutOfMemoryError", does it means that the error is due
to App1 ? or that error may be due to another application running the same
VM? or the same TomCat?

Is there any good way to make those two apps run independantly?

Thanks.

Arcadius.





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




Re: Start tomcat before apache on RedHat7.3

2003-01-15 Thread Arcadius A.
"Bill Lunnon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Have attached a copy of my /etc/rc.d/init.d/httpd file.
> It starts TOMCAT (3.3.1) and apache(1.3.27)
> and stops the other way.
>
> Hope this helps
>
> Bill
>

Thanks Bill! :-)






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Start tomcat before apache on RedHat7.3

2003-01-14 Thread Arcadius A.

"Turner, John" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Then the delay shouldn't need to be more than 5 or 10 seconds.
>

Ok John,
I'm not asking you to do the whole thing for me
but could you give me an example of a script that could do what you're
talking about?

This problem is realy strange I have TomCat 3.2 running on FreeBSD with
apache3.27 and mod_jk (automatic config)  when I reboot, tomcat and
apache start quite fine without the need of any special script  but I
cannot see why I'm having troubles on RedHat.

regards.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Start tomcat before apache on RedHat7.3

2003-01-14 Thread Arcadius A.

"Turner, John" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Nope, where startup (and shutdown) scripts are located has no bearing
> whatsoever on when they are started.  Where != when.
>
> The init directories are known as rcN.d, where N = a number.  That number
> defines runlevel, not startup order.  A UNIX/Linux machine has different
> runlevels.  Single user, multi-user, single-user with network,
maintenance,
> multi-user with X windows, whatever.  Each one of those runlevels has a
> number.  Which run level the computer is booting to defines which init
> directory is used to startup services.  The default runlevel is typically
3
> (multi-user with network) or 5 (multi-user with network with X-Windows),
in
> the case of Red Hat.  Other variants are similar.
>
> Now, within a particular rcN.d directory, you will typically see files
that
> have names like "S55sshd" and "S85tomcat" or "SNNservice" or whatever.
Some
> will be named "KNNservice".  NN in this case is also a number, and THAT
> number defines startup order.  That is, S55service will startup before
> S85service.  "S" means "start at boot" and "K" means "do not start at
boot".
> So, if you have a S file that you want to stop from running at boot, you
can
> "cp -p SNNservice KNNservice" and that will stop it the next time you
boot.
> Utilities like Red Hat's chkconfig, etc. can manage this for you, or you
can
> get in and hack it around manually, whichever makes you comfortable.
>
> The point here is NOT startup order, but startup TIME.  That is, elapsed
> time, not sequence time.  Tomcat needs time to startup, but your init
> scripts don't know that, so they will be good little scripts and try to
> execute as fast as possible, in the milliseconds, meaning that Apache's
> startup script or command will execute right after Tomcat's, while Tomcat
is
> still trying to complete, especially in the case of using ApacheConfig for
> mod_jk.
>
> You want to slow all of that down.  The solution is to 1) delay the point
> when Tomcat's startup script reports to init that things are OK and init
can
> continue with the next service in the list, which will eventually be
Apache,
> 2) delay the point when Apache's startup command/script is executed, 3)
> start Tomcat at boot and Apache manually, or 4) start both manually,
Tomcat
> first, and Apache second after a self-imposed delay that gives Tomcat a
> chance to complete.
>
> Word of advice:  STAY OUT of /etc/rc.d/init.d unless you know exactly what
> you are doing, or have a good backup and a rescue disk...messing around in
> there can cause trouble, like an infinite loop when trying to boot or
> whatever.  You want to do things in the appropriate runlevel directory,
like
> rc3.d or whatever, and use a tool like chkconfig to manage your runlevel
> dirs and their links to the actual start/stop scripts.
>

Thanks John for clearing things up... :-)

ARcadius.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Start tomcat before apache on RedHat7.3

2003-01-14 Thread Arcadius A.
> what runs when, and stick the delay in there.
>
> Another solution is to not use ApacheConfig (i.e. and the dynamically
> generated mod_jk.conf file) at all, just use some static version that
> you created.  In fact, this makes a lot more sense to me, for a number
> of reasons, including that I don't believe ApacheConfig can capture
> everything that needs to go into that file, and that once you have
> things set, it's not going to change that frequently (so you shouldn't
> have to regenerate it every time you start Tomcat).
>
>

Thanks for the reply...
Just let me point out that I have not used neither mod_jk.conf  nor
ApacheConfig 
I have written all the "loadModule ." and "JkMount "  etc directly
into httpd.conf

Regrads

Arcadius.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Start tomcat before apache on RedHat7.3

2003-01-13 Thread Arcadius A.

"Turner, John" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm assuming that you are using the ApacheConfig class to auto-generate
> configuration directives for Apache's httpd.conf.
>
> Tomcat needs time to start up, and the ApacheConfig class needs time to
> write mod_jk.conf (or whatever file you are using).
>
> So, you have to put a delay into the process somewhere.  Like a "sleep 20"
> or something right after the Tomcat script executes, but before Apache is
> started, or take both of them out of init.d and put the startup into
> rc.local where you have more explicit control over what runs when, and
stick
> the delay in there.
>
> John
>

Hello!
Thanks for the reply
I've notice that under the directory  "/etc/rc.d/" are several
subdirectories "init.d", "rc0.d" , "rc1.d", ... ,"rc6.d".
Wouldn't it be easier to just put tomcat startup script in "rci.d" and
apache startup script in "rcj.d" where imailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Start tomcat before apache on RedHat7.3

2003-01-13 Thread Arcadius A.
Hello!
I've successfully  installed tomcat+apache+mod_jk.
Everything work fine...except :
At boot time, apache starts before tomcat so after the system boots, I still
need to restart apache before I can access the jsp pages
Note that I have placed startup scripts for both apache and tomcat in
"/etc/rc.d/init.d/".
The tomcat startup script is the one that comes with tomcat.
Apache startup script is a symbolic link to the "apachectl" script [ :-)]

Thanks for the help.

Regards.

Arcadius.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Special character in file name

2002-12-29 Thread Arcadius A.
Hello!

I'm having a strange problem.

In my JSP, I have the following code :

 

My trouble is that the image doesn't show in tomcat  (see
http://ahouans.sh.cvut.cz:8080/test/test.jsp  ) ... but the image is on the
server (see  http://ahouans.sh.cvut.cz/test/test.jsp )

I have notced the following:

 The image does not display at all when the image name contains the
character  "+" and that the server is not accessed through port 80 (so the
trouble comes up Only when Tomcat is used in standalone mode... see
http://ahouans.sh.cvut.cz:8080/test/test.jsp [this is the standalone mode]
vs.  http://ahouans.sh.cvut.cz/test/test.jsp  [apache+tomcat] ...note that
we are accessing the same file through different ports )

I have the same problem with both tomcat 3.2 and 4.1.

Is there anything I am doing wrong?
Note that the files are uploaded on the server and I cannot tell the
people not to use special characters in their file name.

Thanks

Arcadius.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: