Re: emergency - need to get into admin app

2004-04-19 Thread Rob Cash
I believe that tomcat-users.xml is only read when Tomcat is started. So if you
modified the file after you started Tomcat, it won't help. You'd need to restart
Tomcat after modifying the file. This is just my best guess, not a definitive
fact.

Good luck.

Cheers,
Rob

"Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> We reloaded the drives on our web server yesterday, but Tomcat keeps
> choking, and we think it's because not enough memory is allocated, and
> we're trying to get into the admin web application, but it keeps saying
> our password isn't correct.  Even though I set a password during the
> install, there was nothing in the tomcat-users.xml file, so I've now made
> it this, but we still can't get in:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I've been restarting Tomcat after saving it after each modification.
>
> My boss is literally breathing down my neck, so please write back ASAP if
> you have a clue, b/c Google isn't helping me out all that much!!!
>
> Thanks,
> Stephen




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



RE: emergency - need to get into admin app

2004-04-19 Thread Mike Curwen
Is there anything in the system.out or system.err log files?
(catalina.out on unix, stderr/stdout on windows). What about
context-specific log files?

you say it's choking, but you also say "it says wrong password", so
*something* is responding?  Do you get the default tomcat welcome page?
(the one with links to both admin and manager apps?)  Can you see tomcat
in the task list (ps -ef or Windows Task Manager?) Can you get the
manager app?
 
are there any drives you haven't mounted or mapped?
are there NSF mounts  you didn't re-mount?
are you using Apache in front, if so are your JK mount directions still
valid?

are you restoring your drives from an archive? have you ruled out
archive corruption? perhaps try downloading the tomcat binary again, and
using that binary, just to get Tomcat up and running, then you'll be
looking at corruption within the codebase for each context.




> -Original Message-
> From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 19, 2004 12:48 PM
> To: Tomcat Users List
> Subject: emergency - need to get into admin app
> 
> 
> We reloaded the drives on our web server yesterday, but 
> Tomcat keeps choking, and we think it's because not enough 
> memory is allocated, and we're trying to get into the admin 
> web application, but it keeps saying our password isn't 
> correct.  Even though I set a password during the install, 
> there was nothing in the tomcat-users.xml file, so I've now 
> made it this, but we still can't get in:
> 
>  
> 
> 
> 
> 
> 
>  roles="manager,admin"/>  password="tomcat" roles="tomcat"/>  password="tomcat" roles="role1"/>  password="tomcat" roles="tomcat,role1"/> 
> 
> I've been restarting Tomcat after saving it after each modification. 
> 
> My boss is literally breathing down my neck, so please write 
> back ASAP if you have a clue, b/c Google isn't helping me out 
> all that much!!!
> 
> Thanks,
> Stephen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: emergency - need to get into admin app

2004-04-19 Thread Parsons Technical Services
NOTE: This is an emergency fix only and will leave you wide open.

Edit the admin web.xml to allow no authentication.

DO NOT LEAVE IT THIS WAY.

What do you logs say?

What does the server.xml look like? Please post it.

Doug

- Original Message - 
From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 1:48 PM
Subject: emergency - need to get into admin app


> We reloaded the drives on our web server yesterday, but Tomcat keeps
> choking, and we think it's because not enough memory is allocated, and
> we're trying to get into the admin web application, but it keeps saying
> our password isn't correct.  Even though I set a password during the
> install, there was nothing in the tomcat-users.xml file, so I've now made
> it this, but we still can't get in:
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I've been restarting Tomcat after saving it after each modification. 
> 
> My boss is literally breathing down my neck, so please write back ASAP if
> you have a clue, b/c Google isn't helping me out all that much!!!
> 
> Thanks,
> Stephen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Thanks, but we are restarting after every modification.  And this is
Tomcat 4, by the way.  Our website is dead right now.  If anybody has a
clue why the password I'm putting in there isn't being accepted, please
let me know!  


- Original message -
From: "Rob Cash" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon, 19 Apr 2004 13:55:09 -0400
Subject: Re: emergency - need to get into admin app

I believe that tomcat-users.xml is only read when Tomcat is started. So
if you
modified the file after you started Tomcat, it won't help. You'd need to
restart
Tomcat after modifying the file. This is just my best guess, not a
definitive
fact.

Good luck.

Cheers,
Rob

"Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> We reloaded the drives on our web server yesterday, but Tomcat keeps
> choking, and we think it's because not enough memory is allocated, and
> we're trying to get into the admin web application, but it keeps saying
> our password isn't correct.  Even though I set a password during the
> install, there was nothing in the tomcat-users.xml file, so I've now made
> it this, but we still can't get in:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I've been restarting Tomcat after saving it after each modification.
>
> My boss is literally breathing down my neck, so please write back ASAP if
> you have a clue, b/c Google isn't helping me out all that much!!!
>
> Thanks,
> Stephen




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


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



Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Ok, I took out the security tags and I can get in there.  Is the admin
app where I set memory allocations in Tomcat???  I'm looking at adding an
Environment Entry or something, but I don't know what to do with this! 
Our total Java memory is only like 60 MB and we need at least a gig! 
Thanks...


- Original message -
From: "Parsons Technical Services" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 2004 14:01:14 -0400
Subject: Re: emergency - need to get into admin app

NOTE: This is an emergency fix only and will leave you wide open.

Edit the admin web.xml to allow no authentication.

DO NOT LEAVE IT THIS WAY.

What do you logs say?

What does the server.xml look like? Please post it.

Doug

- Original Message - 
From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 1:48 PM
Subject: emergency - need to get into admin app


> We reloaded the drives on our web server yesterday, but Tomcat keeps
> choking, and we think it's because not enough memory is allocated, and
> we're trying to get into the admin web application, but it keeps saying
> our password isn't correct.  Even though I set a password during the
> install, there was nothing in the tomcat-users.xml file, so I've now made
> it this, but we still can't get in:
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I've been restarting Tomcat after saving it after each modification. 
> 
> My boss is literally breathing down my neck, so please write back ASAP if
> you have a clue, b/c Google isn't helping me out all that much!!!
> 
> Thanks,
> Stephen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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


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



Re: emergency - need to get into admin app

2004-04-19 Thread Parsons Technical Services
How are you starting tomcat?

What OS are you running?


- Original Message - 
From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 2:28 PM
Subject: Re: emergency - need to get into admin app


> Ok, I took out the security tags and I can get in there.  Is the admin
> app where I set memory allocations in Tomcat???  I'm looking at adding an
> Environment Entry or something, but I don't know what to do with this!
> Our total Java memory is only like 60 MB and we need at least a gig!
> Thanks...
>
>
> - Original message -
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Mon, 19 Apr 2004 14:01:14 -0400
> Subject: Re: emergency - need to get into admin app
>
> NOTE: This is an emergency fix only and will leave you wide open.
>
> Edit the admin web.xml to allow no authentication.
>
> DO NOT LEAVE IT THIS WAY.
>
> What do you logs say?
>
> What does the server.xml look like? Please post it.
>
> Doug
>
> - Original Message - 
> From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 1:48 PM
> Subject: emergency - need to get into admin app
>
>
> > We reloaded the drives on our web server yesterday, but Tomcat keeps
> > choking, and we think it's because not enough memory is allocated, and
> > we're trying to get into the admin web application, but it keeps saying
> > our password isn't correct.  Even though I set a password during the
> > install, there was nothing in the tomcat-users.xml file, so I've now
made
> > it this, but we still can't get in:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > I've been restarting Tomcat after saving it after each modification.
> >
> > My boss is literally breathing down my neck, so please write back ASAP
if
> > you have a clue, b/c Google isn't helping me out all that much!!!
> >
> > Thanks,
> > Stephen
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
I see something in catalina.bat about a JAVA_OPTS environment variable. 
Do I need to set this in Windows?  When I run java -X on the command
line, I see something about a -Xms option for setting the heap size.  Do
I just type -Xms  in the Windows environment variable or
what?  


- Original message -
From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 2004 13:06:46 -0500
Subject: Re: emergency - need to get into admin app

Thanks, but we are restarting after every modification.  And this is
Tomcat 4, by the way.  Our website is dead right now.  If anybody has a
clue why the password I'm putting in there isn't being accepted, please
let me know!  


- Original message -
From: "Rob Cash" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon, 19 Apr 2004 13:55:09 -0400
Subject: Re: emergency - need to get into admin app

I believe that tomcat-users.xml is only read when Tomcat is started. So
if you
modified the file after you started Tomcat, it won't help. You'd need to
restart
Tomcat after modifying the file. This is just my best guess, not a
definitive
fact.

Good luck.

Cheers,
Rob

"Stephen Charles Huey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> We reloaded the drives on our web server yesterday, but Tomcat keeps
> choking, and we think it's because not enough memory is allocated, and
> we're trying to get into the admin web application, but it keeps saying
> our password isn't correct.  Even though I set a password during the
> install, there was nothing in the tomcat-users.xml file, so I've now made
> it this, but we still can't get in:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I've been restarting Tomcat after saving it after each modification.
>
> My boss is literally breathing down my neck, so please write back ASAP if
> you have a clue, b/c Google isn't helping me out all that much!!!
>
> Thanks,
> Stephen




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


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


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



Re: emergency - need to get into admin app

2004-04-19 Thread Peter Davison
Hi Stephen.

You need to modify the CATALINA_OPTS environment variable:
To give yourself a Gig of memory, try: 

export CATALINA_OPTS="-Xmx1024m"

How you set this variable will depend on your environment/os etc.

Hope that helps.
Pete.

Quoting Stephen Charles Huey <[EMAIL PROTECTED]>:

> Ok, I took out the security tags and I can get in there.  Is the admin
> app where I set memory allocations in Tomcat???  I'm looking at adding an
> Environment Entry or something, but I don't know what to do with this! 
> Our total Java memory is only like 60 MB and we need at least a gig! 
> Thanks...
> 
> 
> - Original message -
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Mon, 19 Apr 2004 14:01:14 -0400
> Subject: Re: emergency - need to get into admin app
> 
> NOTE: This is an emergency fix only and will leave you wide open.
> 
> Edit the admin web.xml to allow no authentication.
> 
> DO NOT LEAVE IT THIS WAY.
> 
> What do you logs say?
> 
> What does the server.xml look like? Please post it.
> 
> Doug
> 
> - Original Message - 
> From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 1:48 PM
> Subject: emergency - need to get into admin app
> 
> 
> > We reloaded the drives on our web server yesterday, but Tomcat keeps
> > choking, and we think it's because not enough memory is allocated, and
> > we're trying to get into the admin web application, but it keeps saying
> > our password isn't correct.  Even though I set a password during the
> > install, there was nothing in the tomcat-users.xml file, so I've now made
> > it this, but we still can't get in:
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > I've been restarting Tomcat after saving it after each modification. 
> > 
> > My boss is literally breathing down my neck, so please write back ASAP if
> > you have a clue, b/c Google isn't helping me out all that much!!!
> > 
> > Thanks,
> > Stephen
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
Peter Davison
[EMAIL PROTECTED]

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



Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Bacon
In general, you only use it to pass options that you might need. For 
example the X flag controls memory, so if your app requires it you can 
instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be 
running out of memory).
As an example I use: "-Xmx128m" to set the max at 128MB (i think the 
default is 64?)
Note I'm using this under linux so it's in a shell script.
In the Windows batch file, you'd just use:
  set JAVA_OPTS=-Xmx128m
Which I would put after the line "rem - Execute The Requested 
Command" - but that's just me ;^)
You could also use the control panel to set a system-wide env. variable, 
but you don't need everybody to have it defined, plus it may mess you up 
when running java apps other than tomcat.
-Steve

Stephen Charles Huey wrote:

I see something in catalina.bat about a JAVA_OPTS environment variable. 
Do I need to set this in Windows?  When I run java -X on the command
line, I see something about a -Xms option for setting the heap size.  Do
I just type -Xms  in the Windows environment variable or
what?  

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


Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Thanks to everyone who wrote back with suggestions.  We had a rough time,
and right now we're up because we slapped the old drives back in.  After
doing that, I found CATALINA_OPTS in the Environment Variables, and it
had the -Xms and -Xmx flags after the -server one, but I called the guy
who originally set everything up for us over a year ago, and he said he
remembered that that didn't work him (we're on Win 2000 Server) and he
had to set the memory via some super long command line when installing
tomcat as a Service.  

I'm trying to find info on setting the memory with command line args when
installing Tomcat as a service, so if you have a good idea of what needs
to be on the command line when doing that in Windows, feel free to let me
know or point me to the right docs.  

Thanks,
Stephen

- Original message -
From: "Peter Davison" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 2004 14:41:52 -0400
Subject: Re: emergency - need to get into admin app

Hi Stephen.

You need to modify the CATALINA_OPTS environment variable:
To give yourself a Gig of memory, try: 

export CATALINA_OPTS="-Xmx1024m"

How you set this variable will depend on your environment/os etc.

Hope that helps.
Pete.

Quoting Stephen Charles Huey <[EMAIL PROTECTED]>:

> Ok, I took out the security tags and I can get in there.  Is the admin
> app where I set memory allocations in Tomcat???  I'm looking at adding an
> Environment Entry or something, but I don't know what to do with this! 
> Our total Java memory is only like 60 MB and we need at least a gig! 
> Thanks...
> 
> 
> - Original message -
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Mon, 19 Apr 2004 14:01:14 -0400
> Subject: Re: emergency - need to get into admin app
> 
> NOTE: This is an emergency fix only and will leave you wide open.
> 
> Edit the admin web.xml to allow no authentication.
> 
> DO NOT LEAVE IT THIS WAY.
> 
> What do you logs say?
> 
> What does the server.xml look like? Please post it.
> 
> Doug
> 
> - Original Message - 
> From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 1:48 PM
> Subject: emergency - need to get into admin app
> 
> 
> > We reloaded the drives on our web server yesterday, but Tomcat keeps
> > choking, and we think it's because not enough memory is allocated, and
> > we're trying to get into the admin web application, but it keeps saying
> > our password isn't correct.  Even though I set a password during the
> > install, there was nothing in the tomcat-users.xml file, so I've now made
> > it this, but we still can't get in:
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > I've been restarting Tomcat after saving it after each modification. 
> > 
> > My boss is literally breathing down my neck, so please write back ASAP if
> > you have a clue, b/c Google isn't helping me out all that much!!!
> > 
> > Thanks,
> > Stephen
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
Peter Davison
[EMAIL PROTECTED]

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


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



RE: emergency - need to get into admin app

2004-04-19 Thread Trieu, Jason T - CNF
The -Xmx parameter is part of JAVA_OPTS and not CATALINA_OPTS and you
set JAVA_OPTS in catalina.bat to increase max size (-Xmx) of your heap
memory.


Jason

-Original Message-
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 2:06 PM
To: Tomcat Users List
Subject: Re: emergency - need to get into admin app


Thanks to everyone who wrote back with suggestions.  We had a rough
time, and right now we're up because we slapped the old drives back in.
After doing that, I found CATALINA_OPTS in the Environment Variables,
and it had the -Xms and -Xmx flags after the -server one, but I called
the guy who originally set everything up for us over a year ago, and he
said he remembered that that didn't work him (we're on Win 2000 Server)
and he had to set the memory via some super long command line when
installing tomcat as a Service.  

I'm trying to find info on setting the memory with command line args
when installing Tomcat as a service, so if you have a good idea of what
needs to be on the command line when doing that in Windows, feel free to
let me know or point me to the right docs.  

Thanks,
Stephen

- Original message -
From: "Peter Davison" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 2004 14:41:52 -0400
Subject: Re: emergency - need to get into admin app

Hi Stephen.

You need to modify the CATALINA_OPTS environment variable:
To give yourself a Gig of memory, try: 

export CATALINA_OPTS="-Xmx1024m"

How you set this variable will depend on your environment/os etc.

Hope that helps.
Pete.

Quoting Stephen Charles Huey <[EMAIL PROTECTED]>:

> Ok, I took out the security tags and I can get in there.  Is the admin

> app where I set memory allocations in Tomcat???  I'm looking at adding

> an Environment Entry or something, but I don't know what to do with 
> this! Our total Java memory is only like 60 MB and we need at least a 
> gig! Thanks...
> 
> 
> - Original message -
> From: "Parsons Technical Services" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Mon, 19 Apr 2004 14:01:14 -0400
> Subject: Re: emergency - need to get into admin app
> 
> NOTE: This is an emergency fix only and will leave you wide open.
> 
> Edit the admin web.xml to allow no authentication.
> 
> DO NOT LEAVE IT THIS WAY.
> 
> What do you logs say?
> 
> What does the server.xml look like? Please post it.
> 
> Doug
> 
> - Original Message -
> From: "Stephen Charles Huey" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 1:48 PM
> Subject: emergency - need to get into admin app
> 
> 
> > We reloaded the drives on our web server yesterday, but Tomcat keeps

> > choking, and we think it's because not enough memory is allocated, 
> > and we're trying to get into the admin web application, but it keeps

> > saying our password isn't correct.  Even though I set a password 
> > during the install, there was nothing in the tomcat-users.xml file, 
> > so I've now made it this, but we still can't get in:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > I've been restarting Tomcat after saving it after each modification.
> > 
> > My boss is literally breathing down my neck, so please write back 
> > ASAP if you have a clue, b/c Google isn't helping me out all that 
> > much!!!
> > 
> > Thanks,
> > Stephen
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
Peter Davison
[EMAIL PROTECTED]

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


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


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



Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Thanks for this tip.  So, if I wanted to set both the initial and the max
heap size in this Windows batch file, do I say it with quotes like this:

set JAVA_OPTS="-Xms128m -Xmx128m"

Thanks so much,
Stephen

P.S.  When I do that, it's only starting me at about 10MB, so I'm
wondering if this isn't the way to pass both of them at once...


- Original message -
From: "Stephen Bacon" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Date: Mon, 19 Apr 2004 15:14:32 -0400
Subject: Re: emergency - need to get into admin app

In general, you only use it to pass options that you might need. For 
example the X flag controls memory, so if your app requires it you can 
instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be 
running out of memory).
As an example I use: "-Xmx128m" to set the max at 128MB (i think the 
default is 64?)
Note I'm using this under linux so it's in a shell script.
In the Windows batch file, you'd just use:
   set JAVA_OPTS=-Xmx128m
Which I would put after the line "rem - Execute The Requested 
Command" - but that's just me ;^)
You could also use the control panel to set a system-wide env. variable, 
but you don't need everybody to have it defined, plus it may mess you up 
when running java apps other than tomcat.
-Steve

Stephen Charles Huey wrote:

> I see something in catalina.bat about a JAVA_OPTS environment variable. 
> Do I need to set this in Windows?  When I run java -X on the command
> line, I see something about a -Xms option for setting the heap size.  Do
> I just type -Xms  in the Windows environment variable or
> what?  
> 

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


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