Total Pageviews

Monday, August 27, 2007

Tomcat not removing files when using undeploy task

I am using Tomcat 6.0.14 for a new project and Maven2 for build management. Recently I wanted to deploy and undeploy my webapp using the Maven2 cargo plugin. Deploy works fine, but undeploy does not remove all JARs in the webapp and work directory of my Tomcat installation.
This seems to be a general issue with the Tomcat Manager component. To avoid these problems simply put the following attributes into your context.xml

antiJARLocking="true"
antiResourceLocking="true"








Tuesday, August 07, 2007

Gathering System Information on Solaris

Sometimes it is necessary to gather informations about a Solaris system one is working on, but there is no guy around to tell you the details. Here are a few commands you might want to try.


Processors
The psrinfo utility displays processor information. When run in verbose mode, it lists the speed of each processor
and when the processor was last placed on-line (generally the time the system was started unless
it was manually taken off-line).


/usr/sbin/psrinfo -pv


Status of processor 1 as of: 12/12/02 09:25:50
Processor has been on-line since 11/17/02 21:10:09.
The sparcv9 processor operates at 400 MHz,
and has a sparcv9 floating point processor.
Status of processor 3 as of: 12/12/02 09:25:50
Processor has been on-line since 11/17/02 21:10:11.
The sparcv9 processor operates at 400 MHz,
and has a sparcv9 floating point processor.



RAM
The prtconf utility will display the system configuration, including the amount of physical memory.

To display the amount of RAM:
/usr/sbin/prtconf | grep Memory
Memory size: 3072 Megabytes