Skip to main content

Posts

How To Kill Tomcat HTTP Stuck Thread

Stuck Thread Problem: In one of our application we were facing issue of stuck thread ,it can not complete current work and also not able to accept new work. Once thread is stuck,CPU utilization starts increasing slowly, as stucked thread is utilizing more CPU, other threads start performing slowly makes the environment slow for users  and at some point it brings your server down. Restarting server in business hours is not good for anyone ,and it creates the bad impression of IT department to business. Identify Stuck Threads: To identify which are stuck threads ,you can use jconsole and  topthreads plugin.once you identified the top http threads which are consuming more memory you can kill stuck threads using below solution. Stuck Thread Solution: so we have implemented below solution for stuck thread which we found on web. in java you can create jsp with below code and call jsp using URL something like this- http://servername:port/context/jspname.jsp?thr...

create Head project from branch

1) right click on branch in eclipse 2) select Team->Disconnect option 3)There is popup in which you choose   " Also delete CVS Meta-Information From the filesystem " 4)   now right click on branch and select Team->share 5) provide module name whichever you want to give  and follow the instructions

Installing alfresco 3.3 on ubuntu server 10.04

1. Install sun java jdk sudo apt-get install sun-java6-jdk 2. Set environment variable for JAVA_HOME into /etc/environment JAVA_HOME=/usr/lib/jvm/java-6-sun/ 3. Install MySql Server sudo apt-get install mysql-server 4. Create alfresco database login to mysql using mysql root and password mysql -u root -p mysql> CREATE DATABASE alfresco DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; mysql> GRANT ALL PRIVILEGES ON alfresco.* TO alfresco@localhost IDENTIFIED BY 'alfresco'; mysql> GRANT SELECT,LOCK TABLES ON alfresco.* TO alfresco@localhost IDENTIFIED BY 'alfresco'; mysql> FLUSH PRIVILEGES; mysql> quit; 5. Download alfresco installation files create alfresco directory mkdir /opt/alfresco use wget command to download alfresco or install on your machine on any location wget http://dl.alfresco.com/release/community/build-2765/alfresco-community- tomcat-3.3.tar.gz?dl_file=releas...

CVS on Solaris

1. To install CVS and checkout head project,it is explained in below blog http://anipossible3.blogspot.com/2008/03/solaris-discovery.html 2. To checkout branch of project ./cvs checkout -r {branchname} {projectname} 3. To update the head/branch on solaris Head : ./cvs update -d {project name} Brnach: ./cvs update -r {branchname} -d

Create New branch for Project into CVS

1) Make sure you have installed cvsnt on your machine .download it from http://march-hare.com/cvspro/ 2) Set home path of cvsnt into path environment variable of system. 3) Go to the command prompt 4) Do set CVSROOT setting set CVSROOT=:pserver:userid@<cvshost>:/<repository> 4) Then "CVS login" with your password. 5) Then this command cvs rtag -r HEAD -b <branchname> <headprojectname>

Alfresco : add custom Dialog label to create menu

Add new lable to create menu : We need to add below code in web-client-config-custom.xml <alfresco-config>       <config>              <actions>                    <action id="create_testlabel">                         <permissions>                                <permission allow="true">CreateChildren </permission>                      ...