On Friday 14 November 2008 21:01:40 Caldarale, Charles R wrote:
$CATALINA_OPTS -Xms8192M -Xmx8192M -Xss1024K
Setting -Xss is usually not useful, unless your application is very, very
strange.
AFAIK the default stack size of the JVM on 64bit linux is 2M. This is very
large, and most apps
I am porting an application from Windows to Linux which makes heavy use of
servlets. I have a fairly intensive background process (currently a windows
service) that requires no user interaction. I plan to rewrite the code in
Java and I am wondering if there is any notable performance difference
Hi,
I'd like to bump this issue once more.
I finally had some time to run some more experiments to see what
happens with TagHandlers that implement JspIdConsumer. My setup is
Tomcat 6 + MyFaces + JSF CarDemo, and I'm using AspectJ to trace
creation and garbage collection of objects
Hi, all
I got some trouble on startup Tomcat 6.0,
My environment:
Tomcat 6.0.18
Tomcat Native 1.1.15
APR 1.3.3
Ecipse jee ganymede
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
OS: Ubuntu 8.10
Following is the error log, any body can help me?
WARNING:
Caldarale, Charles R wrote:
From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: HttpServletRequest.getUserPrincipal
Sorry for not answering sooner
you are forgiven
- it's easier to do the source searching at home.
is getRemoteUser() merely a shortcut, under which
happens a
Hello All!
I have a simple but important question about JNDI configuration in
Tomcat 5.5. As I know, Tomcat 5.5 introduces new syntax, for example I
have the following resource:
Resource name=jdbc/ODEdatabaseConnection auth=Container
scope=Shareable
Jochen Wuttke wrote:
Hi,
I'd like to bump this issue once more.
I finally had some time to run some more experiments to see what happens
with TagHandlers that implement JspIdConsumer. My setup is Tomcat 6 +
MyFaces + JSF CarDemo, and I'm using AspectJ to trace creation and
garbage
Hi,
Thanks for your reply!
I didn't know about this Bayeux impl in Tomcat, so I developed my own
implementation (that is not strictly conforming to the spec, just very
close).
I'm going to check this module and see if I can get some hints.
What about the CLIENT_DISCONNECT event sub type?
no ideas..?
lmk wrote:
Hello,
I use tomcat clustering with session replication, and JAAS module
authentication;
when tomcat instance loose session, the other cannot authenticate the
user.
how I keep the user authenticated on all the tomcat instance?
thanks!
--
View
I have installed Tomcat 6 in my personal computer (Win XP).
However, I want this computer to act as server and I am accessing the JSP
and Servlet placed on this computer remotely (access JSP and Servlet from
another computer).
Remote computer connect to this Tomcat computer via private network.
I have tried many different configurations and I have been unable to
get my Servlets / JSP to connect to MySQL server running. I am trying
to get this set up on my main server which is running Ubuntu 8.10
Server with MySQL 5 and Tomcat6. I also tried setting up a Ubuntu 8.04
server with
Hi,
It's your mysql listening on Localhost?
Have you tried to use the ip address instead of Localhost?
Best,
Toni
-Original Message-
From: Krapacs Ambrose [mailto:[EMAIL PROTECTED]
Sent: martes, 18 de noviembre de 2008 13:22
To: users@tomcat.apache.org
Subject: Servlets / JSP can't
Krapacs Ambrose wrote:
I have tried many different configurations and I have been unable to get
my Servlets / JSP to connect to MySQL server running. I am trying to get
this set up on my main server which is running Ubuntu 8.10 Server with
MySQL 5 and Tomcat6. I also tried setting up a Ubuntu
Two options:
1. Install tomcat on the remote computer
2. Setup filesharing on the remote computer and make sure the user
tomcat runs as on the local system has privileges to access the share.
--David
deathgod86 wrote:
I have installed Tomcat 6 in my personal computer (Win XP).
However, I want
Can you post your database config and code snippet for accessing the
db? Obfuscate the username/password info.
One immediate observation is the JDBC url should have the name of the
database you are trying to access like this:
jdbc:mysql://localhost/myDatabase?user=
--David
Krapacs
deathgod86 wrote:
I have installed Tomcat 6 in my personal computer (Win XP).
However, I want this computer to act as server and I am accessing the JSP
and Servlet placed on this computer remotely (access JSP and Servlet from
another computer).
Remote computer connect to this Tomcat computer
Hi,
I figured the following ways to configure a webapp as default/root webapp:
1. Call the war-file ROOT.war and use the default Engine/Host/Context
Probably the least invasive way...
2. Write a ROOT.xml context def and put it in the conf/[Engine]/[Host] dir
Requires that the war file is not in
The error is:
Connection timeout.
Or do i need to do some configuration on the xml in conf folder ?
Or i need to install tomcat connector ?
Thx.
awarnier wrote:
deathgod86 wrote:
I have installed Tomcat 6 in my personal computer (Win XP).
However, I want this computer to act as server
Thx for your reply.
But sorry that your option has get rid of the client-server concept.
If follow your option, then there is no point on accessing remotely.
David Smith-2 wrote:
Two options:
1. Install tomcat on the remote computer
2. Setup filesharing on the remote computer and make
deathgod86 wrote:
The error is:
Connection timeout.
Or do i need to do some configuration on the xml in conf folder ?
Or i need to install tomcat connector ?
No, nothing like that. If your Tomcat access works when you do it from
the same computer where Tomcat is running, but does not work
Ok... then I misread your post. Sorry about that.
Describe failed. Do you get a 404 page not found, a 500 server error,
some pretty browser message about not finding the server?
Windows XP SP2 and SP3 have the firewall enabled by default. If the
server is one of those OS's, you'll have to add
Hi,
Am I completely mistaken when thinking that an URL like ../../go/here is
covered under the term relative?
If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here)
work? As far as I can read from the servlet spec, the servlet engine _must_
resolve relative redirects before
Hi,
I've been working with performance measurements of web services and I've
faced this problem. For each request to my system (running in a tomcat 6) I
need to log these information:
Received Bytes (request content length)
Served Bytes (response content length)
Response Time (the time taken
Stig Kleppe-Jørgensen wrote:
Hi,
Am I completely mistaken when thinking that an URL like ../../go/here is
covered under the term relative?
No. You are correct.
If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here)
work? As far as I can read from the servlet spec, the
From: mmocnik [mailto:[EMAIL PROTECTED]
Subject: Default webapp
Please correct me, if I'm missing an option.
I think you've got them all.
So why doesn't it work to set the path in the context def of
a specific webapp to ?
Because that introduces ambiguity and confusion - the name of the
Can you send us the logs and the conf. files?
Thanks
2008/11/14 lmk [EMAIL PROTECTED]
Hello,
I use tomcat clustering with session replication, and JAAS module
authentication;
when tomcat instance loose session, the other cannot authenticate the
user.
how I keep the user authenticated
Could u paste the result of:
#env |grep JRE_HOME
?
Send the conf. files too.
With this information it is easier to help you.
Thanks.
2008/11/18 XuQing Tan [EMAIL PROTECTED]
Hi, all
I got some trouble on startup Tomcat 6.0,
My environment:
Tomcat 6.0.18
Tomcat Native 1.1.15
APR 1.3.3
From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: HttpServletRequest.getUserPrincipal
As for the 1.5 Java specs, there are indeed a couple of
black holes in the Principal area.
I think you have to look at the security discussion in the spec in light of the
JAAS and related security
Thanks a lot for your help.
I really really appreciate your details instruction in the help.
Finally I can access it remotely. :jumping:
You are really a great problem solver.
Giving a very good directive instruction.
I already configure in my personal firewall.
I never noticed that is the
Thanks a lot for your help.
I really appreciate.
Finally I am able to access it remotely. :jumping:
Really thanks a lot for your time to help me solving this problem.
David Smith-2 wrote:
Ok... then I misread your post. Sorry about that.
Describe failed. Do you get a 404 page not
Andre
If not otherwise specified 3306 is the default port for mysql
check to see if its occupied with netstat -a | grep 3306
If it is reconfig your port in my.conf to an available port
Martin Gainty
__
Disclaimer and confidentiality note
Everything
How do I configure server.xml for Tomcat to recognize the following setup?
Tomcat is in
C:\Program Files\Apache Software Foundation\Tomcat 6.0
The application is in
C:\public_html
The directory structure of the application is
C:\public_html\index.html
C:\public_html\WEB-INF\
Hi
I am implementing 2way SSL over https on tamcat server through .Net
client (C# code as given below)
When iam validating server certificate,it's througing error like SSPI
failed while executing following method.
sslStream.AuthenticateAsClient(serverName,clientCertificatecollection,Ss
Change appBase to the absolute path 'c:\public_html'
Inside the appBase create a Directory ROOT (with capitals)
Regards,
Serge Fonville
On Tue, Nov 18, 2008 at 6:26 PM, [EMAIL PROTECTED] wrote:
How do I configure server.xml for Tomcat to recognize the following setup?
Tomcat is in
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: How do I configure server.xml for Tomcat to
recognize my application directory?
The application is in
C:\public_html
You should put the application in a directory underneath public_html, not in
public_html. If you want it to be
From: Chandra Madhumanchi (cmadhuma) [mailto:[EMAIL PROTECTED]
Subject: RE: Servlets / JSP can't connect to MySQL in Ubuntu Server
I am implementing 2way SSL over https on tamcat server through .Net
client (C# code as given below)
And what does that have to do with the thread you just
Hello friends,
I am doing small web application ,in that I am doing connection pooling.I
followed these steps:
*1.In Conf/server.xml - added below code*
Server port=8005 shutdown=SHUTDOWN...
Resource name=jdbc/myoracle auth=Container
type=javax.sql.DataSource
Hi again,
I just checked the Bayeux in Tomcat and it cannot work for me: it seems
to only support GET request (am I wrong?)...
Regards,
Franck.
Hi,
Thanks for your reply!
I didn't know about this Bayeux impl in Tomcat, so I developed my own
implementation (that is not strictly conforming
Am Dienstag, den 18.11.2008, 23:37 +0530 schrieb Sridhar n:
Hello friends,
I am doing small web application ,in that I am doing connection pooling.I
followed these steps:
*1.In Conf/server.xml - added below code*
Server port=8005 shutdown=SHUTDOWN...
Resource name=jdbc/myoracle
Thanks to everyone. I will try out these suggestions tonight and write back if
they do not work.
In response to
What is in your webapp's META-INF/context.xml file? It
should not have either the path or the docBase attributes
set.
the file contents are as follows (note: no attributes in
Anupam
I think this is probably your problem. You create and save information
in one node and then look to see if it is in the other node. It will
only be there if you are independently synchronizing the database state,
because, as you said in your previous emails, they are independent. The
Dear Raphael,
I've been working with performance measurements of web services and
I've
faced this problem. For each request to my system (running in a
tomcat 6) I
need to log these information:
Received Bytes (request content length)
Served Bytes (response content length)
Response Time
Dear Raphael,
I've been working with performance measurements of web services and
I've
faced this problem. For each request to my system (running in a
tomcat 6) I
need to log these information:
Received Bytes (request content length)
Served Bytes (response content length)
Response Time
Guys,
Is it possible to use the same port Connector port=8080
protocol=HTTP/1.1
In two different cluster nodes?
When i put both ones in 8080 they don't balance the requests.
Thanks for the support!
--
Gustavo Campos Araujo
Dear All,
I am setting up a monitoring system for Tomcat servers and I am
looking for hard limits in Tomcat servers in general.
I found a few so far: file descriptors, memory pools (ok, these are
jdk limits) and thread pools.
Are there any other hard limits that I can run into?
--
Kees
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Ludwig wrote:
It's not clear to me which methods I have to implement in order to see
the included static resource processed by Tomcat's DefaultServlet appear
in the output regardless of the output method (PW or SOS) being chosen.
Dear Nate,
I am porting an application from Windows to Linux which makes heavy
use of
servlets. I have a fairly intensive background process (currently a
windows
service) that requires no user interaction. I plan to rewrite the
code in
Java and I am wondering if there is any notable
Deear Michal,
When i checked the tomcat using jconsole i see that the object
RequestProcessor
accumulates to many objects which i guess may show the cause of this
problem.
Uhm. Could you explain what you mean here? I don't understand what you
are trying to say.
You see too many request
Does anybody in the list have good experience using tomcat cluster plus
hearbeat?
Thanks.
--
Gustavo Campos Araujo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nathan,
Nathan Thatcher wrote:
I am porting an application from Windows to Linux which makes heavy use of
servlets. I have a fairly intensive background process (currently a windows
service) that requires no user interaction. I plan to rewrite the
Dear Gaurav,
I have tomcat server with apache (mod_jk) and mysql running on my box.
Initially there were no issues with the server. But from past one
month, the
tomcat application hangs and websites also doesn't open. Though when
i run
nmap localhost, it shows me 8080 and ajp13 services
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kees Jan,
Kees Jan Koster wrote:
I am setting up a monitoring system for Tomcat servers and I am looking
for hard limits in Tomcat servers in general.
I found a few so far: file descriptors, memory pools (ok, these are jdk
limits) and thread
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gustavo,
Gustavo Araujo wrote:
Is it possible to use the same port Connector port=8080
protocol=HTTP/1.1
In two different cluster nodes?
Are the nodes binding to separate IP addresses?
When i put both ones in 8080 they don't balance the
In my code, I have a ServletContextListener (configured in web.xml or similar
file, don't remember exactly), so when the servlet context is created it calls
contextInitialized(ServletContextEvent). In this function I start the daemon
threads. There is a function contextDestroyed which you can
the factory
factory=oracle.jdbc.driver.OracleDriver
should not be a driver, but a factory object for a javax.sql.DataSource
Filip
Felix Schumacher wrote:
Am Dienstag, den 18.11.2008, 23:37 +0530 schrieb Sridhar n:
Hello friends,
I am doing small web application ,in that I am doing
From: Rainer Frey (Inxmail GmbH) [mailto:[EMAIL PROTECTED]
Subject: Re: Question regarding Tomcat memory
AFAIK the default stack size of the JVM on 64bit linux is 2M.
No, it's 1M for Linux (and Solaris) on AMD64 (at least on JDK 6u7) - the same
as the OP was trying to set. For Linux IA64
it only does POST, no GET messages,
there is a patch pending (and one already applied) for 6.0 when it comes
to comet, so testing with trunk would be best
Filpi
Franck Wolff wrote:
Hi again,
I just checked the Bayeux in Tomcat and it cannot work for me: it
seems to only support GET
Alexey Ousov schrieb am 18.11.2008 um 16:19:23 (+0700):
JNDI configuration in Tomcat 5.5 [...]
Resource name=jdbc/ODEdatabaseConnection auth=Container
scope=Shareable
factory=org.apache.naming.factory.BeanFactory
type=org.firebirdsql.pool.FBConnectionPoolDataSource
userName=***
Will, the problem was resolved after I disable the IPV6.
But I think it has been fixed in bug
43327http://issues.apache.org/bugzilla/show_bug.cgi?id=43327:
http://issues.apache.org/bugzilla/show_bug.cgi?id=43327
2008/11/18 Gustavo Araujo [EMAIL PROTECTED]
Could u paste the result of:
#env
I am writing a report generator that has the ability to generate Excel
files. The user clicks on a link (exporter.jsp), the page's content-type
has been set to application/vnd.ms-excel which naturally prompts the user
to either save to a file or open directly in Excel.
It works fine, but
doesn't seem like a tomcat issue. you'd better ask in java/jsp groups.
As a quick hint might use servlet in front of the jsp and whatever name you
wana.
Regards, Youssef
On Wed, Nov 19, 2008 at 3:25 AM, Jonathan Mast
[EMAIL PROTECTED]wrote:
I am writing a report generator that has the
On Tue, Nov 18, 2008 at 5:25 PM, Jonathan Mast
[EMAIL PROTECTED] wrote:
How do specify the output file name from within JSP?
Something like:
response.setHeader(Content-disposition, attachment; filename= +
encodedFileName);
:: will prompt the user to `Save as` with the specified file name.
You need to do something like:
%
response.setHeader(Content-Disposition, attachment;
filename=+whatever.xls);
%
Jonathan Mast [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am writing a report generator that has the ability to generate Excel
files. The user clicks on a link
Maxim Veksler [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
Quoting from JETTY documentation
(http://docs.codehaus.org/display/JETTY/Classloading) :
Using a custom WebAppClassLoader
Finally, if none of the other alternatives already described meet your
needs, you
However, in TC 6.0.19 the code below will work (however, the
request.getOutputStream().close() will still have no effect, it will trigger
because of the status code). Also,
response.setStatus(HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE) will
work as well.
Bill Barker [EMAIL PROTECTED]
Folks,
I have some queries related to the performance tuning of Tomcat V6.
I did search some search on the internet and found very little with regards
to tuning.
My application setup is as follows.
2 Apache web servers.
4 Tomcat application servers
2 database servers.
We did many rounds of
The suggestion works. However, many of the log files are gone. There used to
be in the ${catalina.home}/logs folder files such as
catalina...log
admin...log
host-manager...log
etc
Now there is only
jakarta_service...log
stderr...log
stdout...log
I tried creating a folder log at the same
From: Vasanth Kumar ravi [mailto:[EMAIL PROTECTED]
Subject: Question on Performance Tuning
We did take thread dumps while performing the test, and
found nothing related to application bottlenecks.
Thread dumps are appropriate for diagnosing hangs, but they're not terribly
useful for
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: RE: How do I configure server.xml for Tomcat to
recognize my application directory?
Now there is only
jakarta_service...log
stderr...log
stdout...log
Those are the logs created by the service wrapper (tomcat6.exe), not Tomcat
Thanks Chuck..
One question thou..
in the JAVA_OPTS do we have to specify -server cos it runs as client by
default.
Will it bring any change to performance ?
On Wed, Nov 19, 2008 at 12:27 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
From: Vasanth Kumar ravi [mailto:[EMAIL PROTECTED]
Hi.
I am not sure the stuck as any thing to do with the Request Processor
accumulation.
I work with nio connector. I use acceptCount=200 so maybe this is why i
see the 200 Request Processors.
This is the full configuratin i use for connector:
Connector executor=AgentExecutor useExecutor=true
Hi
when i am validating client certificate by using .net class(sslStream)
http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.as
px
i am getting error like SSPI failed.
Actually in server.xml i configure clientAuth as True.
!-- Define a SSL HTTP/1.1 Connector on port
Be the first one to try the new Messenger 9 Beta! Go to
http://in.messenger.yahoo.com/win/
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
From: Vasanth Kumar ravi [mailto:[EMAIL PROTECTED]
Subject: Re: Question on Performance Tuning
One question thou..
in the JAVA_OPTS do we have to specify -server cos it runs as
client by default. Will it bring any change to performance ?
Usually it will help reduce the path length of the
74 matches
Mail list logo