Re: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit)

2009-07-23 Thread Alan Chaney
t JVM see http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_heap Apparently RHEL 4 x64 supports up to 16GB and RHEL 5 claims 'unlimited' but I'll bet no-one has actually tried it with 16 TB. Regards Alan Chaney Li,Henry wrote: My Tomcat is running on 32-bit Red Hat 4 (2.6

Re: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit)

2009-07-23 Thread Alan Chaney
PAE enabled) - of course this may not work in your application (you'd have to have two Tomcat instances.) 2. Your other 'workaround' is to install a 64 bit OS and a 64 bit JVM. Then you can have 7G+ for the JVM. Regards Alan Chaney Li,Henry wrote: My Tomcat is running

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Alan Chaney
e object by using the host name as the key, do whatever host specific processing you need. You can add a ContextListener in web.xml will will allow you to do any servlet startup/shutdown operations. There are other ways, but the above should work. Regards Alan Chaney ---

Re: Reading POSTed data

2009-06-19 Thread Alan Chaney
still be available to the servet via the request object's input stream." I don't want to appear picky, but that doesn't actually seem that problematic. If you don't set the content type as application/x-ww-form-urlencoded then you should be able to read it via th

Re: new installation uid / pwd problem

2009-04-09 Thread Alan Chaney
it that file and then restart tomcat. You will also need to read (most) of the documents carefully. I guess you've got the linux distro because it would be much better to start with the currrent release version (6.0) than 5.5 HTH Alan Chaney --

Re: apache/tomcat communication issues (502 response)

2009-04-08 Thread Alan Chaney
.) I suspect that your observations may be affected by "local conditions" eg one application is badly written but represents a lot of your network activity, so its behavior is predominant in conditioning your thinking. Or not! :) regards Alan Chaney But anyway, it indicates a problem

Re: Can only view pages on localhost

2009-03-26 Thread Alan Chaney
operating system, tomcat version, jdk version - all of which would make it easier to help you. However, one wild guess is that you have a firewall which is preventing the other networked machine(s) from accessing the tomcat instance. HTH A

Re: not valid Tomcat installation

2009-03-21 Thread Alan Chaney
Actually I missed the final step!! Right click in the Servers panel and New->Server will let you add the server. Then you can add web projects as required. Regards Alan Alan Chaney wrote: Sergey (and FYI Andre) For each server Eclipse uses, you must create a new entry in the '

Re: not valid Tomcat installation

2009-03-21 Thread Alan Chaney
Eclipse with. For example, I start and run eclipse with a JDK1.5 but compile and run my applications with JRE from the 1.6 JDK. You can have more than one tomcat server defined in eclipse. Its up to you to configure them using the Server properties page to ensure that they use different port

Re: Vmware Server 2 web interface uses tomcat but hogs 8005 and 8009

2009-03-17 Thread Alan Chaney
Chris Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 3/17/2009 4:18 AM, Rainer Frey (Inxmail GmbH) wrote: On Monday 16 March 2009 22:42:27 Christopher Schultz wrote: Can you clarify this a bit? There is no special management instance. VMWare Server is an

Vmware Server 2 web interface uses tomcat but hogs 8005 and 8009

2009-03-16 Thread Alan Chaney
ble. I hunted through all the available configuration files but the values must be hard-coded. So it seems that you must reconfigure any other local tomcat(s) on the same machine to use (a) different startup port(s). Hope that someone, someday, finds this helpful.

Re: help again... what means these errors?

2009-03-01 Thread Alan Chaney
Sorry, didn't see the end! Alan André Warnier wrote: Alan Chaney wrote: Hi Andre Totally agree with your comments with respect to the OP's first exception. However, they actually had two exceptions in their original email with completely different time stamps. The 2nd excepti

Re: help again... what means these errors?

2009-03-01 Thread Alan Chaney
Hi Andre Totally agree with your comments with respect to the OP's first exception. However, they actually had two exceptions in their original email with completely different time stamps. The 2nd exception appears to be a HibernateException 01-Mar-2009 11:36:21 org.apache.catalina.core.Stan

Re: error while building tomcat 5.5

2009-02-28 Thread Alan Chaney
Do you have write permission to the following directory as the user you are using to do the build? You may have to 'su' or 'sudo' or change the access permissions on /usr/share/java to allow the build script to write to it. Regards Alan Chaney h iroshan wrote: /u

Re: Fwd: J2EE on Mac

2009-02-23 Thread Alan Chaney
o download a tomcat release, configure that as a Server and then create a Dynamic Web Project. See the tutorials in the eclipse help. Works for Mac, PC, Linux, Solaris. Regards Alan Chaney ( a long time eclipse user with a major love-hate relat

Re: J2EE on Mac

2009-02-23 Thread Alan Chaney
han a binary tomcat, eclipse and then, within that, eclipse WST (or the combined package in the first place.) Let me just add that the above is an abridged summary to try to get the OP on the right path, not to start a long flame about the advantages and disadvantages of eclipse!

Re: Authenticating Users

2009-02-22 Thread Alan Chaney
Martin Gainty wrote: Which specific attributes are you seeking that are not in DataSourceRealm? http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#DataSourceRealm ? To summarize I (or,actually my "marketing dept') have the following requirements. 1. password be case insensitive [I

Re: Authenticating Users

2009-02-22 Thread Alan Chaney
Gregor Schneider wrote: To the OP: 1. May I ask what database it is you're using? Postgres - but a more general solution would be nice. 2- I'd go for the following solution: Create a JSP-page accepting the credentials. The username should be converted to uppercase. The password should be l

Re: How to close open connections after application stop?

2009-02-22 Thread Alan Chaney
Edoardo wrote I have resultset.close(); statement.close(); connection.close(); in my code. and connection = dataSource.getConnection(); seems very close to my ambiente = (Context) new InitialContext().lookup("java:comp/env"); pool = (DataSource) ambiente.lookup("jdbc/myApp); Connec

Re: Authenticating Users

2009-02-22 Thread Alan Chaney
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, I was the OP on this one. Mark just made a couple of suggestions. On 2/21/2009 4:06 PM, Mark Thomas wrote: 5. Patch DataSourceRealm 6. Make case sensitivity configurable and contribute your patch back to th

Re: Authenticating Users

2009-02-21 Thread Alan Chaney
Make case sensitivity configurable and contribute your patch back to the ASF. Providing it is database neutral, there is a good chance it will be accepted for Tomcat 7 and maybe back-ported to Tomcat 6. Mark Ok Mark I'll have a go at 5. and 6. I'll report back in a few days. Regar

Authenticating Users

2009-02-21 Thread Alan Chaney
requirement of username/email and password case insensitive but case preserving without additional code for Acegi either. Obviously I can take that issue to the acegi/spring forums if acegi is the only solution (that is 1, 3, and 4. above won't work - 2. is out) Thanks in advance Alan C

Re: [OT] Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-19 Thread Alan Chaney
are's t/o, though. ($1,9B) Alan Chaney - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Alan Chaney
important for tomcat. (See vmxnet) YMMV. Regards Alan Chaney Jorge Medina wrote: There are no issues on running Tomcat in a VM. Tomcat is unaware of where it is running. Performance depends on the host running your VM. If you compare a VM running application A on host H compared to

Re: [OT] of the different methods to get a user-id

2009-02-16 Thread Alan Chaney
but reading and trying to understand something a few weeks/months/years later is always fraught with difficulties. The main problem with perl is that I can never remember exactly what #...@!$% means whereas something like getUserPrincipal() works for me! Regards Alan Chaney Christophe

Re: Tomcat Internal Buffering with Jython

2009-02-15 Thread Alan Chaney
called using the PythonInterpreter class and all those Java and Jython integration techniques. Sincerely, Prashant golash On Sun, Feb 15, 2009 at 10:02 PM, Alan Chaney wrote: Hi Prashant The first question - which version of Tomcat? What operating sytem? What JVM? and in your case which versio

Re: Tomcat Internal Buffering with Jython

2009-02-15 Thread Alan Chaney
save the file locally? Regards Alan Chaney Prashant Golash wrote: Hi Tomcat-Apache Gurus, I have a web application where from the front end user loads a file and gives it as input to Java classes.The file is given as input to a python script which converts it into some other format. Here I

Re: starting and stoppping tomcat

2009-02-14 Thread Alan Chaney
er, I need a way to shutdown the server so it will stop updating the database Alan Chaney wrote: I think you need to rethink your use cases here... Exactly WHY do you need to start and stop tomcat from a button on a web page? Or do you really need to enable/disable some kind of function? Gene

Re: starting and stoppping tomcat

2009-02-14 Thread Alan Chaney
have state which can be controlled by the request. This shouldn't normally affect tomcat's normal operation. HTH Alan Chaney paybackorfail wrote: That's a good point, what if it was just an html page? Mark Thomas-18 wrote: paybackorfail wrote: Hi, I have written a we

Re: Fun with the JVM crashing.

2009-02-06 Thread Alan Chaney
xample, I was going to see if Eclipse 3.4 was better than 3.3. I tried b4 thru b16 and it seems to have made no difference. No real answer here, just me giving you some more background data. Regards Alan Chaney Bill Davidson wrote: I've submitted this to Sun a few times. No response.

Re: Random Connection Closed Exceptions - Question to the code example

2009-01-19 Thread Alan Chaney
a et.al and 'happens before' . Personally, I feel that the correct solution is to synchronize access to the connection object when it is retrieved and closed. I have to go out now and I don't have any more time to consider this today, but I'd be interested to hear other p

Re: Random Connection Closed Exceptions - Question to the code example

2009-01-19 Thread Alan Chaney
Hi Stefan You don't need to repeat the stmt.close();conn.close() etc in the 'try' body. The 'finally' by definition is ALWAYS called and that is where you should do the tidy up... Alan Chaney Stefan Riegel wrote: I guess I understood the point with the

Re: PostgreSQL vs MySQL with Tomcat

2009-01-19 Thread Alan Chaney
ibernate. MySQL 5 now has better transactional support than 4 - although I am personally sceptical of their reliance on 'atomic' locking - I don't quite see how that would work with long transactions and an optimistic locking strategy. So, in the end "you pays your money

Re: Tomcat Beginner - Step 2!

2009-01-17 Thread Alan Chaney
Toriacht Eclipse wst has a number of dfferent ways of working. It looks like you have selected the (default) way in which eclipse creates its own internal copy of the webapps directory - in your case in the folder E:\\ ..\tmp1\service_demo. What the error is saying is that as tomcat start

Re: Retrieve User Role

2009-01-08 Thread Alan Chaney
Hi Ben You can get it from the request. In JSP you can access the request implict object to get the value of the HttpServletRequest#getRemoteUser() method ... "Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticate

Re: File upload fails

2009-01-08 Thread Alan Chaney
to recommend. HTH Alan Alan Chaney wrote: How big is the file? "Connection reset" is commonly caused by the the client dropping the connection. This could be because of connectivity problems - for example, issues with the clients ISP. I have had problems with specific browse

Re: File upload fails

2009-01-08 Thread Alan Chaney
e to fault-find? Also, you may want to watch the upload with something like wireshark to see exactly what is happening and when. Regards Alan Chaney javacle wrote: We have a customer who uploads a file on a daily basis. Usually it works, but about once every two weeks it fails with this error

Re: Single WAR to update multiple contexts

2009-01-07 Thread Alan Chaney
f the database? Regards Alan Chaney Sean W wrote: Greetings! I have a single war packaged application that needs to have about 200 unique context paths running (200 copies of the application running - each uses a different database based on the context name). I know how to deploy 1 context

Re: Hints on upgrading from 6.0.14 to 6.0.18 on production server

2008-12-29 Thread Alan Chaney
Or stop using APR... but that in itself is quite a lot of work as I'll have to reconfigure my SSL. Hmm... Gregor Schneider wrote: If I'm not mistaken, the APR has caused the bug, and 6.0.16 contains a new version of the APR. Since this usually comes as a source, you'll have to re-compile t

Hints on upgrading from 6.0.14 to 6.0.18 on production server

2008-12-29 Thread Alan Chaney
a lot of traffic on this site. Thanks in advance Alan Chaney - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Sudden and unexpected exception at Tomcat startup

2008-12-28 Thread Alan Chaney
the /svr/www/tomcat/base/conf folder? Are you sure that the user that tomcat runs as can write to that folder? Have you checked that tomcat is running as the user that you expect? Is it possible that there is a filing system error or even a disk error? Regards Alan Chaney André Warnier

Re: Setting /WebContent as ROOT for an application

2008-12-13 Thread Alan Chaney
credibly brief summary of what is undoubtedly an obscure and complex process for the new-comer (been there.. done that...) and which sadly is not especially well EXPLAINED anywhere that I have found. There are some 'cookbook' type recipes on the web, which are often inconsitent. Hope

Re: Session replication for JPetStore application in tomcat 6

2008-11-18 Thread Alan Chaney
database state is nothing to do with the http session, you must manage that separately. 2) Is it necessary to make the petstore database on each of nodes clustered for session replication to happen ? Regards Alan Chaney

Re: Tomcat threads

2008-11-12 Thread Alan Chaney
André André Warnier wrote: (and what is PermGen ?) No one else seemed to answer this. PermGen is the chunk of memory which is allocated to the JVM in which to hold the 'prototypes' of the class files used. For a large web app with lots of classes (NOT object) it is common to have to radic

Re: Tomcat Master for PHP Hosting?

2008-09-25 Thread Alan Chaney
Its called a 'web service'. Make your tomcat application a web service. Use a php application to invoke it. Distribute the php applications to the php servers. The php application has a user interface and generates the invocation request (probably as an xml file). Your 'MASTER' does the busin

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread Alan Chaney
rested to hear from people who have clustered solutions. Once again I suspect there may be problems with trying to sustain sessions across the upgrades. Regards Alan Chaney Bill Davidson wrote: My company's main webapp is used around the world (Europe, North America, Australia, etc.).

Re: Intgrate Tomcat and PHP in winxp

2008-08-18 Thread Alan Chaney
'step by step', IMHO this is an 'advanced' task and you should not be undertaking it until you fully understand all the implications for performance and security. As Tommy suggests, read and understand the documentation first. Regards Alan Chaney Radhakrishnavangara wrote:

Re: Committing sendRedirect()

2008-07-29 Thread Alan Chaney
you are trying to achieve would require you to create some mechanism where the lucene query results are processed in a separate thread and your application makes TWO requests - one for the first set of results and then one for the final set of results. There are far too many different ways

Re: Programmatically detecting login or logout events

2008-07-28 Thread Alan Chaney
g in event, detect navigation events and detect either manual logout or session timeout and it works fine. It is driven entirely from looking at the state of 'getRemoteUser' and the session timeout event. Regards Alan Chaney

Re: The type <. . .> is not visible

2008-05-23 Thread Alan Chaney
upports generic classes because it supports Java 5. Regards Alan Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Er... shouldn't you be making K00, GenK00 and its constructor public? ...and maybe also importing them into the JSP?

Re: The type <. . .> is not visible

2008-05-23 Thread Alan Chaney
Er... shouldn't you be making K00, GenK00 and its constructor public? They will only be visible to classes in .../test/k00 As to tc loading generic classes - works fine for me on Java 5 and Java 6 Regards Alan Albretch Mueller wrote: Hi I need to check if the tc classloaders are able t

Re: How to increase tomcat memory

2008-05-19 Thread Alan Chaney
the options. I would look for two things were I debugging this: 1. The option isn't being included in the tomcat java invocation 2. The option is corrupted (misspelt, incorrect spacing etc). HTH Alan Chaney Tomás Tormo wrote: Hi here it comes my question again... :D How to inc

Re: Redirect request to another Tomcat server

2008-05-15 Thread Alan Chaney
of making sessions sticky. So I would agree with Johnny and others as below, use something like mod_jk and a cluster. Regards Alan Chaney Johnny Kewl wrote: Liang, I think whats bothering all of us, is that sometimes the concept itself is going wrong, and that what I think the other guy

Re: Multiple Hits to same JSP

2008-05-12 Thread Alan Chaney
er Jonsson Christopher Schultz skrev: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Have you checked to see whether or not they are real requests - that is, | coming from the web. If they are there's nothing anyone on this list can | do... Not entirely. It's

Re: Streaming Video Media

2008-05-12 Thread Alan Chaney
will stop people just casually right-clicking on a link and downloading it. The only other alternative is to employ some kind of DRM system, but I guess you don't want to go that way. HTH Alan Chaney bperquku wrote: thank you for your reply, Actually my webapp uses a db authentication

Re: Multiple Hits to same JSP

2008-05-09 Thread Alan Chaney
rs or feeble attempts to hack your site. If they are truly vindictive the only thing you can do is block them with a firewall. Regards Alan Chaney Sameer Naik wrote: Hi, We are using Apache 2.0.53 + mod_jk 1.2.21 + tomcat 5.0.28 combination and seeing multiple hits to a single JSP file in

Re: Tomcat problem on a multiple CPU system

2008-05-04 Thread Alan Chaney
ed and maybe profile what your app. is doing. HTH Alan Chaney Gilbert, Antoine wrote: Hi I have a 2x quad core (8 cpu units) server. If I start a java program and this one is launching (at the same time) 8 thread doing some CPU intensive jobs, all the CPU are used at 100%, and that&#

Re: MaxThreads <-> max. users ?

2008-04-30 Thread Alan Chaney
e in server traffic. Once again, the only way to know is to experiment. HTH Alan Chaney Stephanie Wullbieter wrote: Hello, on http://tomcat.apache.org/tomcat-5.5-doc/config/http.html is for parameter MaxThreads written: "The maximum number of request processing threads to be cr

Re: R: How to close idle connections

2008-04-28 Thread Alan Chaney
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | I'll bet money the added, idle postgres connections are just sleeping | while they wait for work. Given idle connections contribute virtually | no additional load, don't see his argument that

Re: R: How to close idle connections

2008-04-28 Thread Alan Chaney
ws as idle (when its not being used!) and consumes about 140k bytes of memory. On a modern server that can hardly be considered as any use at all! Alan Chaney Enrico Sasdelli wrote: Thanks for reply, I see you have maxIdle="20". Do you have more that 20 connections sitt

Re: Response time

2008-04-23 Thread Alan Chaney
say CPU = 100% what about memory usage?) 3. Some kind of lock contention. HTH Bruno Matos wrote: Hello, Tank you every one. I connect to localhost and my CPU stays in 100% all the time. Open directly the xml file take no time at all. Alan Chaney wrote: One a similar vein, exactly how do yo

Re: Response time

2008-04-23 Thread Alan Chaney
One a similar vein, exactly how do you connect firefox to the server? Directly, or via some kind of network connection. If its a network, what's the bandwidth? Alan Chaney Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, Bruno Matos wrote: | I'

Re: Bending Jasper to My Will

2008-04-22 Thread Alan Chaney
on thing? Will your end-users be able to configure things or will it be the result of specific programming work? Alan Chaney Andy Clark wrote: Lucas wrote: To answer the original question, there is a > mechanism that Tomcat provides to handle the > specific thing you want to

Re: Tomcat is not rendering JSP content on Port 80

2008-04-22 Thread Alan Chaney
ndividual components of a project are released on their own timescales and to meet their own objectives. I always seem to find something doesn't quite work right when I try to do it by rote from a tutorial and I end up debugging it myself, just using the tutorial as a guide. -Carl

Re: Tomcat is not rendering JSP content on Port 80

2008-04-21 Thread Alan Chaney
ify your system more clearly and I'm sure people will be able to give you more specific help. Alan Chaney BeasC wrote: I can get Tomcat to render JSP content if I try to (for example) access the JSP installation examples using http://localhost:8080/examples/jsp But when I try to try

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Alan Chaney
e access to these files. And I'm not allowed to run my java app as 'root'. I'm pretty new to linux, so your help (i.e. command examples) is much appreciated. Daniel Alan Chaney wrote: This is really a linux permissions issue. How are you starting tomcat? with th

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Alan Chaney
missions - GIYF As an aside, if you are going to have two different processes writing these shared files you may also have to consider locking issues - maybe you have already done this. Regards Alan Chaney Daniel J Hulme wrote: Hi, I'm running a WebService using Tomcat 5.5 on Ub

Re: jsvc creates pid file owned by root

2008-04-12 Thread Alan Chaney
Hi Chris Christopher Schultz wrote: Are you sure you are changing the umask for the jsvc process? I wonder if the umask is being re-set to something else when jsvc elevates itself to root. You should ask the commons folks about how to do this with jsvc, as this is really off-topic, here (but we'

Re: jsvc creates pid file owned by root

2008-04-11 Thread Alan Chaney
You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat, allow tomcat to bind to ports 80 and 443 and then switch to the user specified with -user switch. When you i

Re: stop apache web server for tomcat 6

2008-04-10 Thread Alan Chaney
something like: sudo apt-get remove apache2 - if you have problems see the ubuntu users list HTH Angelo Chen wrote: Hi, I have a ubuntu server which has apache web server 2 pre - configured, it is port 80, now I install tomcat 6 and I'd like to use port 80 as well, how can i stop apache2

Re: Connection pooling again

2008-04-10 Thread Alan Chaney
do something, sleep again and do something else and then close the connection. Turn on logging for the pool and watch concurrent requests being processed. Alan Chaney [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daad, [EMAIL PROTECTED] wrote: | No, my test

Re: Newbie: Question about first Servlet

2008-04-06 Thread Alan Chaney
, you fixed it! Hope you have hours of fun learning servlet programming just like the rest of us... Regards Alan Chaney Kurt L Harless wrote: OK, figured it out. I changed the Character Set to Instead of I figured this out by using the tomcat.exe to start the service and saw the

Re: Threads

2008-04-03 Thread Alan Chaney
Actually another question is what is it in your application that NEEDS 2500 threads? What does the application do? Is it 3rd party or in house? Normally the creation of a thread is considered an expensive operation and typically one tries to avoid creating new threads all over the place. Hence

Tomcat podcast server

2008-04-03 Thread Alan Chaney
unning on a dual core opteron. Even at heavy loads the CPU utilization is low and it only needs about 100MB of heap to support 100 simultaneous connections. (which could represent 7GB of download) It is written using Spring and Hibernate (and a lot of other wonderful open sourc

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Alan Chaney
Chris Very nicely put. The only thing that I'm not clear on is your comment about sending the data as a String. The OP is trying to return a pdf file, which is a byte stream. I'd worry about trying to wrap that in a String because of encoding issues. You make a good point about two simultan

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Alan Chaney
t doesn't work... what do I need to use instead of the response.redirect ? 2008/4/2, Alan Chaney <[EMAIL PROTECTED]>: You don't need the redirect. The response to the request IS the pdf file. HTH Guilherme Orioli wrote: It just doesn't show the Download dialog on the s

Re: How can I refresh tomcat in the java code?

2008-04-02 Thread Alan Chaney
You don't need the redirect. The response to the request IS the pdf file. HTH Guilherme Orioli wrote: It just doesn't show the Download dialog on the screen when i click the button... 2008/4/2, Guilherme Orioli <[EMAIL PROTECTED]>: ok... here's what i'm doing... in system out, something like

Re: Top mail servers

2008-03-31 Thread Alan Chaney
Steffen Heil wrote: It's very fast, relyable and flexible. Agreed. The configuration language is even turing complete... Be aware, that it's initial configuration may be a huge step. On debian/ubuntu you get a multi-file configuration by default, which is good, if the package is updated.

Re: Top mail servers

2008-03-28 Thread Alan Chaney
Have you looked at exim? (www.exim.org). sendmail is rather dated. I have no experience of postfix. I have set up two mailservers with exim. The documentation is thorough, but setting up a public production mailserver is not for the faint-hearted. Exim is supposed to be significantly easier to

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Alan Chaney
In the real world what network connections will exist between you and your real clients? How many ports do you have on your server? How fast are they? How big are the pages being requested? Including images, css files etc? If you have 500 concurrent users will you have 500 times the traffic

Re: RESIDENTIAL MEMORY 100%

2008-03-26 Thread Alan Chaney
lems. And don't forget to check the firewall! Regards Alan Chaney - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 6 and placing jars in $CATALINA_HOME/lib

2008-03-26 Thread Alan Chaney
ependent. There are other solutions to the time of uploads. Thanks Caldarale, Charles R wrote: From: Alan Chaney [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and placing jars in $CATALINA_HOME/lib Is there any reason why these jars (and their dependencies) should not be placed in $CATALINA_

Tomcat 6 and placing jars in $CATALINA_HOME/lib

2008-03-26 Thread Alan Chaney
applications to my servers. From my reading of the docs there could be a potential problem if there is a conflict between existing classes in the TC distribution and the jars I would put in the 'lib'. What's the recommended practice? Thanks in advance. Regar

Re: RESIDENTIAL MEMORY 100%

2008-03-25 Thread Alan Chaney
tion then 'google is your friend'. HTH Spec Os = Unix 11 jsdk = 1.6 Tomcat =5.5.23 version thx in advance with regards karthik Alan Chaney wrote: Firstly, you are only making 350M of your memory available to the application. xmx=350m means 350 megabtyes is reserved for the he

Re: RESIDENTIAL MEMORY 100%

2008-03-25 Thread Alan Chaney
at machine address on the same routed network. Cannot see webpages on browser from outside or inside. Thanks. s. list, On Mon, 24 Mar 2008, Alan Chaney wrote: | yes We have used -Xms or -Xmx Configuration , since the system RAM is | 6 GB | as | | "JAVA_OPTS=-server -Xms35

Re: RESIDENTIAL MEMORY 100%

2008-03-25 Thread Alan Chaney
ss on the same routed network. Cannot see webpages on browser from outside or inside. Thanks. s. list, On Mon, 24 Mar 2008, Alan Chaney wrote: | yes We have used -Xms or -Xmx Configuration , since the system RAM is | 6 GB | as | | "JAVA_OPTS=-server -Xms350m -Xmx350m -XX:+UseParallel

Re: RESIDENTIAL MEMORY 100%

2008-03-24 Thread Alan Chaney
| yes We have used -Xms or -Xmx Configuration , since the system RAM is | 6 GB | as | | "JAVA_OPTS=-server -Xms350m -Xmx350m -XX:+UseParallelGC -verbose:gc" So you have a 3.5GB heap. What are you filling it with? It's probably not a memory issue if... Actually the OP's heap appears to be

Re: Tomcat on Leopard

2008-03-15 Thread Alan Chaney
I'd guess that you copied the text in the tutorial using an editor which converted it to an RTF (Rich Text Format). The text you show in your email is rtf markup. The startup_tomcat file is a shell script which is setting the following environment variables JAVA_HOME - where you have insta

Re: Does tomcat support multicores

2008-02-28 Thread Alan Chaney
XP Home only supports one core - however, that would hardly be an OS for a production web server (grin) XP Professional is limited to 2 cpus I would suspect that the OPs factors were related to IO Bandwidth or running out of threads as suggested earlier. I've found that a modern multicore mach

Re: How to make Tomcat do not use /dev/random?

2008-02-26 Thread Alan Chaney
Problems with /dev/random relate to waiting to generate enough entropy after restart of the OS. Does this slow start up happen only after the machine has been restarted or does it happen every time Tomcat is started? If the latter, then it is unlikely to be associated with /dev/random and much

Re: NIO connector under heavy load drops incoming requests?

2008-02-25 Thread Alan Chaney
Actually I've seen something like this. I'm under a lot of pressure to get something out so I haven't investigated it further, but what seemed to be happening is that if the client slowed down the NIO connector was throwing a SocketTimeout. I tried messing about with the timeout settings but cou

Re: OT: java memory question -Xmx2048m

2008-02-25 Thread Alan Chaney
completely different instruction set. The Xeon family and the E64 family are all compatible with the 'AMD' 64 bit JVM You say DELL 2590 - do you mean DELL 2950? The 2950 is takes Intel Xeon processors which will work with the so-called 'AMD' JVM. Hope that helps Regards Alan Cha

Re: Help getting MySQL connected to Tomcat

2008-02-24 Thread Alan Chaney
[EMAIL PROTECTED] wrote: Thanks for the help. I still don't have this working completely, but tomcat is now working. I tested mysql and it is using tcp/ip. "mysql -h 127.0.0.1 -u javauser -p" works fine. Also the MSQLAdmin program shows it is connecting to the correct port 3306

Re: Apache2 adn/or Tomcat6?

2008-02-22 Thread Alan Chaney
Or as I mentioned in a recent email, you can run something like jsvc and set the user to 'tomcat' which allows you to bind to the port and then changes the user. Regards Alan Mark H. Wood wrote: I must've missed the place in the documentation where it explains how to get Tomcat to start as r

Re: Apache2 and tomcat5.5

2008-02-20 Thread Alan Chaney
tomcat as root THIS IS VERY BAD DON'T DO THIS OR 3. use something like jsvc and set the 'user' to tomcat after starting up as root. jsvc will start as root and bind to the port and then switch to the non-privileged tomcat user for normal operation. Regards Alan Chaney Hassan

Re: deploy/undeploy probs with 6.0.14

2008-02-17 Thread Alan Chaney
I've seen the following causes: 1. Application not shutting down properly because threads still running. 2. Application holding on to system resources (files, database) (really another version of 1.) Try stopping the app using the manager and checking that the log says that the app is undeplo

Re: managing user uploads best practices

2008-02-11 Thread Alan Chaney
Totally agree with everything brien says below. I also run a web site with a large number of media objects. I've been involved in filing system and media projects for many years both in research and production capacity. The slight increase in complexity of the solution to maintain the media

Re: Application Realm in Tomcat

2008-02-07 Thread Alan Chaney
If you purpose is to find the roles in the database wouldn't it be better just to query the database? What kind of realm are you using? If its something like the 'memory' realm then you can just read the file. If its a RDBM then a few lines of JDBC code or the use of a persistence manager would

Re: mbeans-descriptor.dtd

2008-01-30 Thread Alan Chaney
Bill Barker wrote: Got it, thanks very much! For Tomcat 6, you can get it at http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/modeler/ For earlier Tomcat versions, you can get from common-modeler at http://commons.apache.org/downloads/download_modeler.cgi.

mbeans-descriptor.dtd

2008-01-30 Thread Alan Chaney
Hi Where can I find the mbeans-descriptor.dtd? The documentation mentions a 'fulldocs' download but I can't seem to find that. Thanks in advance Alan Chaney - To start a new topic, e-mail: users@tomca

  1   2   >