Posts

Monitoring CPU Load Averages with Shell Script

Today I started re-inventing myself, started looking what all I did for me and my team to perform in better ways. Remembered those we used to open UNIX SSH windows to monitor How the CPU load average in each site. While doing this monitoring activity on site1, there might be possible that some other site reach to overload, which leads to uncontrol tendency to work. It was funny, my dear buddy named it as 'Barbar work!!' :) After little R & D on Google/Internet found few suitable solutions. I had chosen 'uptime' command running with remote SSH connection in a loop. Adding more value to this sending a mail on the event of crossing the threshold value. This threshold will be vary depending upon the application and CPU power. Trail and error make you to identify what could be the threshold. Defining these threshold values Venu GopalRao helped a lot. Once script started working he was amazed and appreciated as well. This script can be run forever with a specified ti...

Restricting the access from Apache HTTP Configuration

Image
There is one common problem that most of the Web Admins encounter when configuring the Apache Web Server as proxy plug-in. The Java archive files such as .jar/.war/.ear files or any content of the Server accessing will be shown to everyone when that URL is published. Some situations demands some of the images/pictures display by your site must be restricted access of copying. The best way restrict this files from unauthorized use is by Apache File directive. This File directive can be configured in httpd.conf file in the Apache configuration. By the way my friend Sarangapani already discussed about Apache installation & configuration , So I am not repeating again here. In the same configuration file we can also restrict the access from specific IP address or DomainNames. Explore more about this topic File Directive A detail description about valnerabilities about Apache plugin is given in a separate blog. The link is here click

Java parameters for WebLogic Server

There are many burning issues on going WebLogic based environments due to this Java parameters JAVA_OPTIONS, l USER_MEM_ARGS,  PRE_CLASSPATH,  POST_CLASSPATH.  Heap size in MEM The USER_MEM_ARGS can be defined for WebLogic as follows as minimum requirement : -Xms1024m The minimum size of JVM -Xmx1024m The maximum size of JVM keeping the same as minimum will avoid number of GCs. -XX:NewSize=512m The Young Generation (YG) space size -XX:MaxNewSize=512m The maximum sise for Young Generation space -XX:SurvivorRatio=6 There will be two (from, to) survivor spaces both will equal in space and one will be always empty for swapping which will be used after GC. -Xnoclassgc Perm space  -XX:PermSize=128m The permanant space for static classes they will be loaded only once. -XX:MaxPermSize=128m There could be chance of increase of classes as the application functionality increased widely. Troubleshoot OOM errors In production or Development en...

Autodeploy on WebLogic 11g

Today I want to test Sun One WebServer 7 proxy plug-in with WebLogic 11g. Mr. Prasanna yalam suggested to use autodeploy of simple Jsp to the connectivity. To Autodeploy a web application in WebLogic Standalone AdminServer we need to follow the steps:1. create a Exploded folder say for example 'myweb' in domain_name/autodeploy folder2. create a Test.jsp file using any editor Hello from WebLogic Pavan Devarakonda save this fileat the same folder create WEB-INF folder 3. create web.xml deployment descriptor file 4. touch WEB-INF/REDEPLOY create this file for new timestamp when AdminServer lookup for the autodeployments. verify this on the console deployments section.choose Testing tab and click on the url with Test.jsp that's all you need to do..It will give you the autodeployed application output on your browser. Ref: http://download.oracle.com/docs/cd/E13222_01/wls/docs92/deployment/autodeploy.html#wp1021620

JVM monitoring with jstat Shell Script

Image
The Oracle WebLogic Server instances are nothing but each one running on a single JVM, when this JVM crashes there could be one of the reasons as overworking of Garbage Collection or not working at all (waiting continuously).   It is good practice that monitoring GC in JVM with detailed statistics will give you a clear idea to analysis at what circumstances happening wrong. And the best way to look in deeper levels of garbage collection also like Young Generation (Eden space, Survivor spaces S0, S1) Old Generation (tenured Generation), and Perm Generation (Statistic Objects/Classes). JDK 1.5 and latest providing excellent JDK command utilities for interrogate the current running Java Process and look inside of JVM take snap with following: 1. jps (Java Process) 2. jstat (JVM status) The 'jps' command with -lv options gives you complete detailed java process arguments for MEM settings and relavent WebLogic Server instances name. We have already discussed about this command ...

WebLogic Server cluster status

Some times the WebLogic Server logs showing that one of the managed server removed from the cluster... How to confirm in faster way or from commandline... it is pretty simple way is... java  weblogic.Admin -url adminserver:port -username user -password passwd CLUSTERSTATE -nameofthecluster

Editing config.xml in WebLogic Server

My experience on experimenting with WebLogic domains repository that is config.xml . It was a challenging experiment, where the WebLogic 9.2 MP3 was the version on which I did this workout. Here the basic thing need to know is how the config.xml is constructed and referring to the "http://www.oracle.com/technology/weblogic/90/security/wls.xsd". This is the major change new versions using XSD to ensure that quality of XML is wellformed in the config.xml Before editing the config.xml Smart Admin always prefer to take backup before editing the config.xml. You need to take a complete backup that should include the jdbc, jms directories if already created. To ensure complete backup of configuration use the following command: cp -R config config_date Editing with vi editor Here you need to have little wise thinker to understand about complexType, simpleType, sequance these all XML schema types and used to define the xml instances (xsi).  What we can edit in the confi...