JAVAC leaking memory

2002-10-18 Thread Jhair Tocancipa Triana
Hi,

On the release notes of Tomcat v.4.1.2 the following is stated:

,[ 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/RELEASE-NOTES ]
| 
| JAVAC leaking memory:
| 
| 
| The  Java compiler leaks  memory each  time a  class is  compiled. Web
| applications containing hundreds of JSP  files may as a result trigger
| out  of memory errors  once a  significant number  of pages  have been
| accessed. The  memory can  only be freed  by stopping Tomcat  and then
| restarting it.
| 
| The JSP  command line compiler (JSPC)  can also be  used to precompile
| the JSPs.
`

Which version (platform) of the JDK is meant here?

Thanks in advance,

--
--Jhair


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Loading a dll at startup...

2002-10-15 Thread Jhair Tocancipa Triana

Hi,

  Hi, I use Tomcat 4.1.12, JDK 1.3.1, Windows NT4 SP6.  My webapp
  uses a Windows custom dll which is called by a java class
  (native method).  It worked with Tomcat 4.0.5 with modification
  of setclasspath.bat to include this dll in Tomcat's classpath
  and path, however it doesn't work anymore with Tomcat 4.1.12 :
  I have a blank string returned by this call.

You should  check the java.library.path property when  your java class
runs.

Check it with a:

,
| System.out.println( System.getProperty( java.library.path ) );
`

There is where your class looks for the DLL.

Regards,

--
--Jhair


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




Re: Performance of Web Application

2002-09-10 Thread Jhair Tocancipa Triana

- Can anybody explain me yahoo web application in and out, like,
- database design, database server details, servlet engine,
- server details, the amount of data it handles. How it manages
- the requests and serves the requests so fast.

Clustering? In  the case of  google, clustering and good  algorithms I
guess.

--
--Jhair



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





Re: Tomcat Installation on linux

2002-08-26 Thread Jhair Tocancipa Triana

 - == khozaima shakir [EMAIL PROTECTED] writes:

- Should a startup window open? It didn't open.  

No, if you are  running tomcat from a shell. Or did  you run it from a
Windows emulator?

- When I try to shutdown the tomcat, it gives segmentation fault.

How do you shutdown the tomcat?

--
--Jhair


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




Re: Can someone explain catalina.home catalina.base?

2002-08-21 Thread Jhair Tocancipa Triana

   == Michael  [EMAIL PROTECTED] writes:

  I've searched everywhere and can only find conflicting
  information about these properties.  

Could you be more specific?

  Basically I want to deploy
  my webapp without modifying ANY files under the CATALINE_HOME
  directory (where I installed Tomcat).  

Which  directories do  you have  under CATALINA_BASE?  Is  your webapp
under CATALINA_BASE or under CATALINA_HOME?

Please  take  a  look at  the  RUNNING.txt  (Point  (4)) file  in  the
CATALINA_HOME directory.

Thanks,




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




Re: RE : Can someone explain catalina.home catalina.base?

2002-08-21 Thread Jhair Tocancipa Triana

- Server.xml contains:

- Context reloadable=true debug=10
- docBase=c:\idtect\projects\oemserver\web path=/oemserver /

- I then go to DOS and type:

- C:\%CATALINA_HOME%\bin\startup Using CATALINA_BASE:
- c:\idtect\projects\oemserver\conf\tomcat Using CATALINA_HOME:
- c:\devapps\tomcat Using CATALINA_TMPDIR:
- c:\idtect\projects\oemserver\conf\tomcat\temp Using JAVA_HOME:
- C:\devapps\j2sdk1.4.1 C:\

The documentation says ($CATALINA_HOME/Running.txt):


When you do this, Tomcat 4 will calculate all relative references for files in
the following directories based on the value for CATALINA_BASE instead of
CATALINA_HOME:
* conf - Server configuration files (including server.xml)
* logs - Log and output files
* webapps - Automatically loaded web applications
* work - Temporary working directories for web applications


Does your webapp reside on: c:\idtect\projects\oemserver\conf\tomcat?

In your Context, docbase is defined as:

c:\idtect\projects\oemserver\web

Seems like CATALINA_BASE was not properly defined.

Regards,

--
--Jhair



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




Re: Segmentation Error SIGSEGV 11 * Segmentation Violation

2002-08-20 Thread Jhair Tocancipa Triana


  HI, I am using Red Hat 7.2, Tomcat 3.2.3, MySQL and JDK 1.2.2.
  I am getting the error: Segmentation Error SIGSEGV 11 *
  Segmentation Violation

  Can u pls provide some solution for this?

No,  please  take  a  few  minutes  to  formulate  your  problem  more
precisely.

--
--Jhair


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




Re: Specifying location of tomcat-users.xml

2002-08-20 Thread Jhair Tocancipa Triana

   == Michael  [EMAIL PROTECTED] writes:

  I'm running tomcat from within IDEA, and I'm using the -config
  command line parameter to tell tomcat where my server.xml file
  is located (in my project directory).  But tomcat is looking
  for tomcat-users.xml in the CATALINA_HOME directory.  Is there
  a command to specify a conf directory other than CATALINA_HOME?

Set the CATALINA_BASE variable as needed.

--
--Jhair


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




JNI and Tomcat Classloaders

2002-07-12 Thread Jhair Tocancipa Triana

Hi,

I do have the following problem. Suppose the following class:

class Bridge{
   /* ... */
   static{
  System.loadLibrary( jni_tester );
   }   
   /* ... */
}

It is possible to create/destroy  instances of Bridge inside Tomcat in
such a way that the shared library jni_tester is loaded only once?

The  shared  library  and  the   code  which  uses  Bridge  reside  in
$CATALINA_HOME/lib, so this code should  be loaded by the shared class
loader[1]. 

Hence jni_tester will be loaded  by the shared class loader only once.
Is that true?   Or should I do something else to  make the native code
to be loaded only once? (I store state information in the native code)

Thanks in advance for your help,

-- 
--Jhair

[1] http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html


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