RE: Apache Tomcat takes 3 to 4 browser request clicks to wake up after being idle for 1-2 hours

2008-02-11 Thread Peter Crowther
From: Brian Le [mailto:[EMAIL PROTECTED] So how do I make Tomcat responsive to website visitors after 1-2 hours of no visitors? Web server setup: Suse Linux 10.3 - text based, minimal install Apache 2.2.8 - mpm_worker, compiled front end using mod_jk 1.2.26 Tomcat connector, default

RE: Password Input on Tomcat Startup

2008-02-08 Thread Peter Crowther
From: Jan Mönnich [mailto:[EMAIL PROTECTED] we have a very sensitive webapp that requires the input of a password when the tomcat server starts. We don't want to store this password in a file. One way we've already tested could be the use of a JDialog with a JPasswordField that is shown in

RE: Tomcat SSL for multiple domains

2008-02-07 Thread Peter Crowther
From: Dave [mailto:[EMAIL PROTECTED] the machine has one IP address. But there are two top-level domains (not subdomains) mapping to the ip address. www.domain1.com www.domain2.com I need to setup SSL. As far as I know, SSL certificate is set up for one domain only. Using the

RE: Install Tomcat 5.5 Tomcat 6.0 in the same machine

2008-02-06 Thread Peter Crowther
From: Juan Jesús Cremades Monserrat [mailto:[EMAIL PROTECTED] Hi! I'm Triying install two differens versions of Tomcat in the same machine. It's necessay for two projects that I'm developing. I've installed successfully the Tomcat 5.5 with Java 1.5.0_14, but when I'm try install Tomcat

RE: port

2008-01-31 Thread Peter Crowther
From: Tony Chamberlain [mailto:[EMAIL PROTECTED] We had tomcat running on port 8080 (which is default). Since some people block that port we moved it to the http port 80. Now some places that are expecting it on 8080 can't find it anymore. Anyway to have it run on both? Maybe forward from

RE: Start Tomcat 5.0.28 using a domain account

2008-01-31 Thread Peter Crowther
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] Changing the log on as user from Local System account to a domain account seems straight forward. Under the Windows Services tool, I double click Apache Tomcat and I specify the This account, under the Log On tab, and put in some

RE: port

2008-01-31 Thread Peter Crowther
To: Tomcat Users List Subject: Re: port I can't figure out the iptable commands to do it. On Thu, Jan 31, 2008 at 9:45 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Tony Chamberlain [mailto:[EMAIL PROTECTED] We had tomcat running on port 8080 (which is default). Since some

RE: Xmx and Xms size

2008-01-30 Thread Peter Crowther
From: Julio Cesar Leiva [mailto:[EMAIL PROTECTED] We have an app on a m linux box dual processor dual core , 16GB RAM We are wondering what could be the ideal size for Xmx and Xms It is impossible to answer that question without detailed results from stress-testing your application with a

RE: Tomcat Performance

2008-01-29 Thread Peter Crowther
-written piece of code or poorly-indexed SQL table that's causing 90% of the problem, and fixing it. - Peter -- Peter Crowther, Director, Melandra Limited - To start a new topic, e-mail: users@tomcat.apache.org

RE: Socket Exception

2008-01-29 Thread Peter Crowther
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED] Ah... nothing else can be the cause of this? Anything that can cause a socket connection to fail or close before Tomcat's finished writing to it. But the most common cause is the user agent. Asking because these aren't normal users for

RE: Socket Exception

2008-01-29 Thread Peter Crowther
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED] org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Remote Host /xxx.xxx.xxx.xxx SocketException: Connection reset [...] Anyone on the list knows what this is, what might be causing it and how do I fix it? The usual cause is that the

RE: Tomcat benchmark

2008-01-21 Thread Peter Crowther
From: Andrew Hole [mailto:[EMAIL PROTECTED] Is there any benchmark test available that allow me to determine the number of concurrent requests that Tomcat supports for a particular type of hardware? You already have it: your own Tomcat, your own app, your own mix of requests, and your own

RE: How can I speed up and reduce load of initialization

2008-01-16 Thread Peter Crowther
From: Gavan Hood [mailto:[EMAIL PROTECTED] My problem is the initialization. When I start tomcat it takes about two minutes to complete initialization and pegs my little processor at times, often it keeps it around 80% untilized... Yeah, that's not good in an embedded device! 2 minutes

RE: MultiContext War

2008-01-15 Thread Peter Crowther
From: DCVer [mailto:[EMAIL PROTECTED] I am trying to merge 4 web applications (WARs) into 1 WAR file. Is it possible? Yes, but it can be a lot of manual work. Shall I have e.g. 4 web.xml files or should I manually merge them into 1 file? One WAR = one webapp. One webapp = one web.xml, one

RE: Tomcat setup

2008-01-11 Thread Peter Crowther
From: Morten Matras [mailto:[EMAIL PROTECTED] How would you set an environment up for the following case: - 20 independent (non related) webapplications with low traffic 200 unique (real) visitors per day per webapplication - Application architecture: Hibernate, Java 1.5 and Stripes

RE: Loading multiple versions of the same library

2008-01-11 Thread Peter Crowther
From: Brian Wawok [mailto:[EMAIL PROTECTED] Tomcat 5.0 Server. Program A is running on server, and needs axis 1.1 as a library. Is program A packaged as a WAR, with the Axis 1.1 libraries in the WAR? If not, it should be. Program B is running on the same server, and needs axis 1.4 as a

RE: tomcat6 installation

2008-01-09 Thread Peter Crowther
From: Melanie Pfefer [mailto:[EMAIL PROTECTED] Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0) Make sure you have at least JDK1.5 installed, and that your JAVA_HOME is pointing to that JDK. It

RE: tomcat6 installation

2008-01-09 Thread Peter Crowther
From: Melanie Pfefer [mailto:[EMAIL PROTECTED] 1- how to change the http port number? Look at the various Connector elements in conf/server.xml 2- how to allow a non-root user to start tomcat? Is it only though file ownership modification (chown -R /usr/local/tomcat6)? Make sure you're not

RE: Why use a Web Server over Tomcat?

2008-01-08 Thread Peter Crowther
From: Kristian Rink [mailto:[EMAIL PROTECTED] Asides this, while tomcat and friends (servlet containers) are made to serve up, well, J2EE web tier applications, web servers like apache2, lighttpd, ... are usually better at serving static content (images, static css files, html documents that

RE: Please help : StackOverFlow error

2008-01-07 Thread Peter Crowther
From: Benoit VARVENNE [mailto:[EMAIL PROTECTED] Exception in thread Thread-8 java.lang.StackOverflowError The expansive algorithm is a recursive one. I now always have StackOverFlow exceptions. I have already tried to customize JVM memory options with the following line in my .profile

RE: Please help : StackOverFlow error

2008-01-07 Thread Peter Crowther
From: Benoit VARVENNE [mailto:[EMAIL PROTECTED] Is there a way of determining what are reasonable values for the stack size (maybe according to the potential number of threads, ...) ? Profile the app. And, for you in particular, know how deep the recursion will go and hence how large one

RE: tomcat session security hole

2007-12-19 Thread Peter Crowther
From: Dave [mailto:[EMAIL PROTECTED] Hi, I am using URL rewriting for session tracking, ie, session id is on the URL. After I login into a web application, if someone else knows my current session id, he/she can access my account using the session id. It is ok because it is difficult for

RE: Tomcat is slow with router configured

2007-12-19 Thread Peter Crowther
From: Nabble-Member1 [mailto:[EMAIL PROTECTED] The web app is fast if I configured network bridge mode (both Web server and DB server have same subnet 192.168.1.x). But it is very slow if the network is configured as router mode (Web server and DB server is in different subnets -

RE: Tomcat is slow with router configured

2007-12-19 Thread Peter Crowther
From: Gary Evesson [mailto:[EMAIL PROTECTED] Try using the IP address in the driver specification rather than the name of the machine. THat will tell you if it is a name resolution issue. The connection is working but slow - I don't think the OP specified whether they were using the name or

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Peter Crowther
From: Sean Carnes [mailto:[EMAIL PROTECTED] The highest that we could set the heap was to 1200. That feels a little low, even on Windows. I wonder what's fragmenting the address space. I can get to about 1500 on x86 Windows 2003 Server Standard before the VM fails to start. We have

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Peter Crowther
From: Stefano Martines [mailto:[EMAIL PROTECTED] I have exactly the same problem. Tomcat5.exe is increasing memory allocation day by day. I think you may have a different problem. Sean's problem was that increasing load on his server meant increasing memory use. Do you *also* have

RE: Tomcat5.exe increasing memory allocation

2007-12-06 Thread Peter Crowther
From: Stefano Martines [mailto:[EMAIL PROTECTED] I am running Tomcat 5.0.28 in a production environment. It has the default settings you get from the initial installation. The Tomcat5.exe process allocates 250 MB memory right now and it is increasing from day to day. What is the reason?

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
From: Sean Carnes [mailto:[EMAIL PROTECTED] *We are having an issue with the tomcat service crashing version 4.1.31, sometimes with these memory errors and sometimes not. We have a backup but once the load moves to that server the backup crashes also almost immediately after the load

RE: How to check my current JVM settings

2007-12-06 Thread Peter Crowther
Operating system? Tomcat version? Installed as service or running from batch file? Java version? -Original Message- From: Stefano Martines [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 15:21 To: users@tomcat.apache.org Subject: How to check my current JVM settings Hi, I don’t

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
From: Peter Crowther Looks like that slight increase in load has tipped you over from being just-about-alright to just-about-failing. If you can't increase heap space, can't decrease load and can't alter the application, your only remaining choice is to add capacity: install another server

RE: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Peter Crowther
From: Sean Carnes [mailto:[EMAIL PROTECTED] Thanks for the quick response. Your evaluation is similar to what I have been saying to my counterparts in regards to load balancing. The back-end servers seem to be responding in a timely fashion right now. We have performance data from the

RE: How to check my current JVM settings

2007-12-06 Thread Peter Crowther
From: Stefano Martines [mailto:[EMAIL PROTECTED] Hi, it is Windows 2000, tomcat 5.0.28 tomcat runs as service (tomcat5.exe) Java 1.4.2x From a swift Google - I don't run Tomcat as a service, so beware of this information! Start tomcat5w.exe (should be in Tomcat's bin directory). That

RE: Tomcat5.5 postgresql, security oh my

2007-12-03 Thread Peter Crowther
Exactly which Tomcat version? What doesn't work? What error do you get, under what circumstances? - Peter -Original Message- From: Chris Baty [mailto:[EMAIL PROTECTED] Sent: 03 December 2007 13:37 To: users@tomcat.apache.org Subject: Tomcat5.5 postgresql, security

RE: Question about multiple SSL at same machine

2007-11-29 Thread Peter Crowther
From: Alex Florentino [mailto:[EMAIL PROTECTED] I have windows colocation and have one site that have ssl and it works fine, now I have another site and need set up another ssl, I think that change ssl port for second site is good solutions but my client don't like this idea, then I need

[OT] Ooh, shiny! (was RE: Best Linux distribution)

2007-11-16 Thread Peter Crowther
From: Warren Pace [mailto:[EMAIL PROTECTED] Point taken. We ran a Vax until last year... On Nov 15, 2007 10:52 AM, Steve Ochani [EMAIL PROTECTED] wrote: If everyone based their decisions solely on that criteria we would be all using pdp-11s. [...] I think some companies are rather

RE: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread Peter Crowther
From: loredana loredana [mailto:[EMAIL PROTECTED] I'm having some problems figuring out what webapp is causing this problem. It's not simple! However, the main use for PermGen is storage for classes. Do you have any webapps that dynamically generate classes? Is it happening when you

RE: Initial Setup: The type java.lang.Object cannot be resolved.

2007-11-16 Thread Peter Crowther
From: Ian Pushee [mailto:[EMAIL PROTECTED] I am running a debian install of tomcat5.5, using java-gcj-compat-dev (a free jdk replacement). Oh, dear. Get a real JDK (the Sun one is fine), and a real Tomcat from http://tomcat.apache.org (the tarball is fine). GNU java is a nice toy, but we

RE: Best Linux distribution

2007-11-15 Thread Peter Crowther
From: Andrew Hole [mailto:[EMAIL PROTECTED] In your opinion what is the best LINUX distribution for a server with an instance of Tomcat and an J2EE application of medium load? The one with which your organisation already has experience. Familiarity and ease of admin is king here.

RE: PermGen Out of memory exception

2007-11-12 Thread Peter Crowther
From: Jim [mailto:[EMAIL PROTECTED] PermGen space, on the other hand, doesn't get garbage collected, so you need to ensure you're allocating enough to handle all that your application will need. Unfortunately with the web application classloader-system, every time you deploy an application

RE: speed up the server

2007-11-09 Thread Peter Crowther
From: tbt [mailto:[EMAIL PROTECTED] it was working very fast before being deployed. About 30 people login simultaneously to this application. Once this happens the application is very slow. How many concurrent users do you test with, before you deploy? 30? Or one developer checking the

RE: What do I do with a heap dump? (OOM Permgen)

2007-11-02 Thread Peter Crowther
From: Greg Vilardi [mailto:[EMAIL PROTECTED] How do I figure out what is in that 440kb per deployment? What should I be looking for? As far as I know, public enemy #1 for eating PermGen space is still developers using the Singleton pattern in their code and not having listeners to null out

RE: WAR problems

2007-10-25 Thread Peter Crowther
From: Demetris Zavorotnichenko [mailto:[EMAIL PROTECTED] I am having problems running .WAR applications. I have Tomcat 6 through IIS Is there something I should know about this ? Divide the problem. If you use a direct connector in Tomcat (i.e. contact Tomcat directly, not through IIS),

RE: Advice about Tomcat on x86_64 architecture..

2007-10-18 Thread Peter Crowther
From: Swapnil.Kale [mailto:[EMAIL PROTECTED] Yes i did install the exe and not the zip file. which was creating a problem. Now i uninstalled it and using the zip file, startup.bat , the tomcat runs smoothly. That's a fairly common picture. Windows services are wonderful in theory, but

RE: How to Suppress Server Header in the HTTP Response

2007-10-17 Thread Peter Crowther
From: Jatinder Kaur [mailto:[EMAIL PROTECTED] I am looking for a way to suppress the server header in the HTTP Response. I am using Tomcat version 559. Any help is appreciated. http://tomcat.apache.org/tomcat-5.5-doc/config/http.html See the server parameter - the comment unless you're

RE: Connector Compression

2007-10-17 Thread Peter Crowther
From: Mike Cronin [mailto:[EMAIL PROTECTED] Is there any reason why you would not want to use compression on a Connector? You're trading CPU cycles (running the compression algorithm) for bandwidth. I suspect you're also trading a certain amount of RAM (some extra buffers), though I haven't

RE: Isolation between multiple TC instances

2007-10-17 Thread Peter Crowther
From: David kerber [mailto:[EMAIL PROTECTED] Running TC 5.5.15 on Windows Server 2003, JRE 1.5.0_12. My understanding is that if I'm running the same (or different, for that matter) webapp on separate tomcat instances (different ports, context roots, etc), they will each have their own

RE: tomcat/java process strangeness

2007-10-17 Thread Peter Crowther
From: thebugslayer [mailto:[EMAIL PROTECTED] When I start tomcat using /opt/tomcat/bin/catalina.sh start, I get 21 processes that running the same command(different PIDs). Tomcat uses Java threads. Java threads are implemented as Linux threads on Linux. Each Linux thread appears to be a

RE: Advice about Tomcat on x86_64 architecture..

2007-10-17 Thread Peter Crowther
From: Swapnil.Kale [mailto:[EMAIL PROTECTED] I tried installing tomcat 32 bit on a 64 bit JVM but it didnt work. That is very unexpected. *Tomcat* is pure Java. I can do a file copy of my entire Tomcat installation and my apps from my 32-bit development box to my 64-bit staging box (and back

[OT] Replication (was RE: Copying large files around)

2007-10-15 Thread Peter Crowther
[Marked off-topic as this has, indeed, come a long long way from the original question] From: Johnny Kewl [mailto:[EMAIL PROTECTED] but yes if the user could consider replication and the required dB design, much better than moving GB files around. Not always. For example, replication has

RE: Copying large files around

2007-10-13 Thread Peter Crowther
From: David Kerber [mailto:[EMAIL PROTECTED] What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? If

RE: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Peter Crowther
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] If I pass the session ID from the calling window to the spawned window, what do I do with it? Look up the session cookie with JavaScript? Then what? Ideally I want the child window to share the same session. Thinking about this, there's a

RE: newby user: processing when the server launches

2007-10-12 Thread Peter Crowther
From: HODAC, Olivier [mailto:[EMAIL PROTECTED] In my application, I have to perform stuff when the server starts. Where do I have to put this code? Define and use a servlet context listener. This will run as your webapp starts up.

[OT] RE: How to share tomcat sessions across multiple IE windows

2007-10-10 Thread Peter Crowther
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] My app spawns another window to display help, via the window.open() javascript call. The new window does not share the same session as the original, the session ID is always different. Occasionally the ID of the new window is that of a

RE: Very Long Full GC after Inactivity

2007-10-10 Thread Peter Crowther
From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] If it turns out to be so, is there anything I can do to force it to not page out the JVM heap? There's cheap and there's messy :-). The cheap way: Set up a job that runs overnight that exercises your app. It should keep the critical files

RE: Very Long Full GC after Inactivity

2007-10-10 Thread Peter Crowther
From: Christopher Schultz [mailto:[EMAIL PROTECTED] My experience with JNI is that you have to pin objects one at a time. To be clear: I wasn't talking about pinning Java objects to particular addresses in memory, instead pinning the entire process address space into memory using Win32 API

RE: Different jar version

2007-10-10 Thread Peter Crowther
From: Andrew Hole [mailto:[EMAIL PROTECTED] What happens if I put different jar versions of same classes on WEB-INF/lib? Example: project.jar (new version) project_old.jar (old version) Tomcat load and use both? Could Tomcat be confused with this situation? Each time a class is

RE: Very Long Full GC after Inactivity

2007-10-09 Thread Peter Crowther
From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] We are running an application on Tomcat 5.0.28 with Java 1.4.2. The usage of the application is very cyclical. It is used heavily during the day, and lightly at night. During peak daytime hours, a full garbage collection takes less

RE: Tomcat 5.23: caching of css files?

2007-10-09 Thread Peter Crowther
From: Angelo Chen [mailto:[EMAIL PROTECTED] 1. shut down tomcat 2. delete war and related directory 3. copy new war file 4. start tomcat with all above, I'm still getting pages styled with old css file, it will go away after several hours. kind of strange. Is that a browser issue?

RE: How to increase Tomcat webserver speed?

2007-10-05 Thread Peter Crowther
From: David Delbecq [mailto:[EMAIL PROTECTED] Since you say CPU usage on your machine is around 5% during those tests, and your database is on same machine as tomcat server, i doubt the bottleneck really is on database. The OP never reported on disk I/O - this is often the killer on

RE: Webapp load order tomcat 4 vs tomcat 5

2007-10-04 Thread Peter Crowther
From: King, Sean [mailto:[EMAIL PROTECTED] For the application to run correctly, app2 must be deployed and start before app1. Using tomcat 5 this does not seem to be a problem. When I start tomcat, app2 is deployed and then app1 starts and is able to access jars in app2. I am hoping that

RE: Apache Tomcat (5.5) configuration suggestions

2007-10-04 Thread Peter Crowther
From: Tony Fountain [mailto:[EMAIL PROTECTED] is there some sort of server type mode for Apache to run in that will allow me to make use of more than 1.5 GB of memory? You'll need the 64-bit JVM - and a 64-bit OS! Other than that, 1.5G is about as large a contiguous heap as Java can

RE: Apache Tomcat (5.5) configuration suggestions

2007-10-04 Thread Peter Crowther
From: Tony Fountain [mailto:[EMAIL PROTECTED] from the perspective of performance, will the x64 yield much better performance for this type of thing over x32? Obviously it will from a systems standpoint but is it evident from an end user perspective? Depends entirely on your application

RE: Apache Tomcat (5.5) configuration suggestions

2007-10-04 Thread Peter Crowther
From: Tony Fountain [mailto:[EMAIL PROTECTED] Would you happen to know of any good references that walks through how to trouble shoot Apache related performance issues? I don't, so I'm going to throw that open to the list here :-). A few obvious pointers from me: - Performance Monitor:

RE: Foreign Language on web

2007-10-03 Thread Peter Crowther
From: Girish Havaldar [mailto:[EMAIL PROTECTED] what are the things we need to provide user, so that user will just select the language which he wants and enters the text in that language. Do you need to know the language in which the user has entered the text? Or do you just need the text?

RE: Foreign Language on web

2007-10-03 Thread Peter Crowther
From: Girish Havaldar [mailto:[EMAIL PROTECTED] i need text, i need user to enter text in French, Japanese, Hindi(Indian Language) etc.,. OK. By standardizing to UTF-8 and providing the respective Font, we 'll be able to accomplish the things? If you're just using HTML and Tomcat, you

RE: Tomcat and Apache on the same port?

2007-10-01 Thread Peter Crowther
From: Tony Anecito [mailto:[EMAIL PROTECTED] The Tomcat server is running web services which are dynamic. OK. That's an answer to a slightly different question to the one I asked, so let me unpack it a bit :-). - You presently have a Tomcat server front-ended by Apache httpd. - You serve

RE: Tomcat performance measurments...

2007-09-28 Thread Peter Crowther
From: Tony Anecito [mailto:[EMAIL PROTECTED] Also, any hints on how to improve Tomcat performance appreciated. Why not do the easy one - get rid of that extra layer of performance-sapping httpd and mod_jk in the middle instead? - Peter

RE: Tomcat and Apache on the same port?

2007-09-28 Thread Peter Crowther
From: Tony Anecito [mailto:[EMAIL PROTECTED] Is it possible to run Tomcat and Apache on the same port? You can't run two processes bound to the same endpoint (combination of IP address and port). As httpd (what you call Apache) and Tomcat are separate process, you can't do this. As Filip

[OT] RE: Tomcat crash @ midnight - but why?

2007-09-27 Thread Peter Crowther
From: Andrew Miehs [mailto:[EMAIL PROTECTED] Oh - and you may want to have a serious talk with the cleaning lady, not that she unplugs the server for the vacuum cleaner.. ^^ Don't joke, it happened repeatedly to a box I used to manage in a hospital. Even after we taped over the plug, writing

RE: Tomcat crash @ midnight - but why?

2007-09-27 Thread Peter Crowther
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Now before I execute the System.exit I do a dump. Are you sure shutting down the entire Tomcat instance is the appropriate thing to do if you can't create the log directory? As opposed to, say, logging the problem and returning an appropriate

RE: Simultaneous Requests to servlet

2007-09-27 Thread Peter Crowther
From: Pavan Singaraju [mailto:[EMAIL PROTECTED] In theory, when there are simultaneous requests come for a servlet, it will either queue the requests and serve one by one or create multiple threads of the servlet and serve the request. My question is, what / how tomcat handles this

RE: Tomcat 5.0 strange crashes

2007-09-25 Thread Peter Crowther
From: keglius [mailto:[EMAIL PROTECTED] OS: RedHat el4 (Linux 2.6.9-42.0.8.EL) The Java application works fine, however sometimes Apache Tomcat 5.0 just crashes without any reasons. A wild stab in the dark... How much free memory do you have? I seem to recall DeadRat has an oom-killer in

RE: Tomcat 5.0 strange crashes

2007-09-25 Thread Peter Crowther
From: keglius [mailto:[EMAIL PROTECTED] Actually, the server almost doesn't have free memory. 1007.9 MB of 1011.2 MB used; 3.2 MB available RAM OK, that's physical memory. What about swap? I think Tomcat is configured to always use 1GB of memory. Then you have a problem anyway. You have

RE: Basic question - Ingterating Tomcat with Apache

2007-09-24 Thread Peter Crowther
From: albrecht andrzejewski [mailto:[EMAIL PROTECTED] I think tomcat stand alone is - easier to deploy. And that's all. There are also fewer things to fail, and a smaller learning curve for your system administrators (if they don't already know Apache httpd and the JK connector). I think

RE: Basic question - Ingterating Tomcat with Apache

2007-09-21 Thread Peter Crowther
From: Tata, Jagadeesh [mailto:[EMAIL PROTECTED] I installed tomcat 6.0.13 on Solaris SPARC. Which is the better (suited) version of Apache and Apache connector for installed Tomcat? If you don't already have Apache on the box, please ask yourself this question first: Why do I need Apache

RE: Why Net use ... does not work with WebDAV servlet

2007-09-19 Thread Peter Crowther
From: shahab [mailto:[EMAIL PROTECTED] I am trying to develop a simple distributed file system using WebDAV servlet on Tomact application server. while I can successfully browse the WebDAV enabled directory via IE or FireFox, issuing net use p: http://lp:port/Dav; results in The

RE: Legal Risk of Using Tomcat

2007-09-10 Thread Peter Crowther
From: Irvine, Chuck R [EQ] [mailto:[EMAIL PROTECTED] There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies

RE: Connection closed by foreign host. Tomcat5 doesn't answer (Fedora Core 5, yum install)

2007-09-07 Thread Peter Crowther
From: David Iglesias Teixeira [mailto:[EMAIL PROTECTED] After a port-scan in both machines, I can see that test is listening on port 8080, but prod is not On prod: netstat -an | grep 8080 Is port 8080 listed? My guess is yes based on you being able to telnet to it locally, in which case

RE: Can two Tomcat web apps deadlock each other?

2007-09-06 Thread Peter Crowther
From: Wm.A.Stafford [mailto:[EMAIL PROTECTED] Does the fact that this Tomcat behavior does not occur on the windows-based development server offer any clue as to what may be happening on the linux server when Tomcat hangs? I'm going to take a guess: server load. How heavily do you

RE: Question on static variables

2007-09-05 Thread Peter Crowther
From: Chad Lung [mailto:[EMAIL PROTECTED] Coming from ASP.NET experience I know that using static variables with IIS they are held in the app domain and the app domain can be reloaded by IIS for a number of reasons (config files changed, files changed, etc.) This kinda makes using

RE: How to profile Tomcat with Rational Purify?

2007-08-31 Thread Peter Crowther
From: Hitesh Raghav [mailto:[EMAIL PROTECTED] What are the steps for profiling a web server (i.e. Tomcat)? Broadly the same as those for profiling any other app: decide what you want to measure, set up the instrumentation, run, analyse results. In your case, the instrumentation is Purify.

RE: Is Tomcat being hacked by curl ?

2007-08-23 Thread Peter Crowther
From: Lyallex [mailto:[EMAIL PROTECTED] curl/7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0. I have been to http://curl.haxx.se/ and it seems to my (currently) inexperienced eye that this software _could_ be used to do all sorts of despicable things to a web site. Or it could be

RE: Memory problems

2007-08-21 Thread Peter Crowther
From: Morten According to a heap dump done by jmap, there are many org.apache.tomcat.util.buf.ByteChunk instances referencing large byte[], which we suspect to be previously used pictures. We have tried both Tomcat 5.5.9 and Tomcat 6 under JBoss 4.2.0. Both showed the same

RE: Multi-Gigabyte Uploads, Tomcat 2GB and higher uploads

2007-08-20 Thread Peter Crowther
From: David kerber [mailto:[EMAIL PROTECTED] Do you know if .NOT will let upload these giant files? Definitely not on 32-bit (see http://support.microsoft.com/kb/295626). The address space maxes out at 1 Gbyte, and IIS has to buffer the bytes in RAM before ASP.NET can process them.

RE: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Peter Crowther
From: Matthew Kerle [mailto:[EMAIL PROTECTED] So what this is saying is that the *names* of the classes are the same, but the actual classes are different. this is crazy... I suspect the two classes are being loaded by different classloaders - a common and entertaining* problem in Tomcat

RE: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Peter Crowther
From: Matthew Kerle [mailto:[EMAIL PROTECTED] Class c1 = request.getUserPrincipal().getClass(); //get the class of the Principal that tomcat created , which is a MemoryUser instance Class c2 = MemoryUser.class; // get the class loaded by the current loader

RE: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Peter Crowther
From: Matthew Kerle [mailto:[EMAIL PROTECTED] the MemoryUser class is in catalina.jar, which is in the server/lib folder. would I be right in saying that web application code is barred from loading any classes from the server/lib directory? (light bulb comes on) Ah yes, I remember this

RE: ClassCastException trying to cast MemoryUserDatabase to UserDatabase

2007-08-16 Thread Peter Crowther
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Shouldn't it be acceptable to simply move catalina.jar from server/lib to common/lib? Sure, you'll still have a non-standard install, but it's easier to script a setup like that than pulling specific classes out of the distro (which may

RE: Problems with SSL

2007-08-09 Thread Peter Crowther
From: Dario Hernan [mailto:[EMAIL PROTECTED] java.lang.ClassNotFoundException: SSL not found in [...] parent=gnu.gcj.runtime.SystemClassLoader Install and use the Sun JDK, not Gnu. As I recall, the Gnu implementation doesn't contain the Sun SSL classes that Tomcat expects. -

RE: Unsubscribe me please

2007-08-08 Thread Peter Crowther
From: David Smith [mailto:[EMAIL PROTECTED] Then you should email users-owner [at] tomcat.apache.org and ask one of the list owners to unsubscribe you. This question has been asked and answered repeatedly in the recent past. Yes, it has. Which is a shame, as possible technological

RE: tomcat is looking for a class I don't use anymore

2007-08-08 Thread Peter Crowther
From: Mastrorillo Laurence 2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException: [...] at org.apache.catalina.session.FileStore.load(FileStore.java:336) I suspect Tomcat persisted its session state to disk at shutdown, and is trying to re-read those sessions.

RE: enabling tomcat SSL on linux

2007-08-08 Thread Peter Crowther
Azhar, can you give us a little more information as to what the refusal takes? What are the symptoms? That you cannot connect from a browser on the same machine / different machine? Does netstat -an | grep 8443 show a port in LISTENING state? - Peter -Original

RE: enabling tomcat SSL on linux

2007-08-08 Thread Peter Crowther
From: Waseem Azhar [mailto:[EMAIL PROTECTED] Connecting to 127.0.0.1:8443... failed: Connection refused is the message i get. I get the same message 'Connection refused' when try to connect from the browser remotely. I have tried using netstat -an | grep 8443 command but nothing show

RE: Load testing, benchmarking, and tuning

2007-08-07 Thread Peter Crowther
From: rhull [mailto:[EMAIL PROTECTED] I can't find any reason to believe I am. I'm running on a 1.5mb download/256mb upload cable connection. The Linux box is on similar. The requests are fairly short HTTP POST request (couple hundred bytes), and the responses from the servlet are

RE: Installing Tomcat on Linux

2007-08-03 Thread Peter Crowther
From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] A coworker claims that all unix admins should never install open source binaries. They should build using the source. Binaries are marginally more open to tampering; this is why most (all?) Apache projects provide checksums of the built

RE: Tomcat with 8 GB memory

2007-07-27 Thread Peter Crowther
From: Joe Nathan [mailto:[EMAIL PROTECTED] Overall performance depend on many things: CPU speed, number of CPUs, memory size, I/O, especially, virtual memory paging, network interface bandwidth 64bit machines come with better capacity except cpu computation speed! Please state your

RE: Running tomcat under root user

2007-07-13 Thread Peter Crowther
From: Sridhar Kulkarni [mailto:[EMAIL PROTECTED] I want to run the tomcat server as root usser... I am not able to find the documentation for running tomcat under root user on Ubuntu. Please any one has any idea? su cd tomcat install directory/bin ./startup.sh Or am I missing something

RE: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Peter Crowther
From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED] An easier approach might be to write your encrypting logger as a filter and have it take its input from a named pipe. I thought about suggesting that, but there's a weak point - there's nothing to stop an admin killing the encrypting logger

RE: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Peter Crowther
From: Tim Funk [mailto:[EMAIL PROTECTED] If you have an evil admin, there is nothing stopping the him from sniffing the network, or starting tomcat with a debugger which can look at the memory or {insert evil action here} ;) Sure. Or do the old trick we used to do with Suns - L1-A out

RE: Windows or Linux as Tomcat server?

2007-06-18 Thread Peter Crowther
Something to think about: licensing. If you're running Windows 2003 or above, and you have *any* kind of authentication on your webapp, you need CALs (or, in this case, an Internet connection license) on the Windows server. The Web edition has different restrictions, but read the license

<    2   3   4   5   6   7   8   9   10   >