How to null logs in Linux
To null out log /var/tmp/mond.log
Run: cp /dev/null /var/tmp/mond.log
All the content of the log file will be removed
If log is in use.. you can do this:
Send a SIGSTOP signal to the process which you want to pause/stop, copy the log files to target directory and finally issue a SIGCONT signal to the same process.
WordPress is the greatest blog software!
I have about 14 wordpress sites, I’ve really enjoyed working with the application. The admin side of the site makes it so easy to create a one of a kind website easy, and no issue to update.
The newer updates in wordpress have included an “auto update” making the upgrades a breeze. So I did the first no – no of the day and didn’t create a backup BEFORE I ran the update to 3.1 (you should always backup-BEFORE you make changes). You guessed it, my upgrade said it was a success… but.. my site is now dead.(I had to do it to two of my sites before I started to panic)
I found this little snip-it off the internet that worked for me:
The wordpress 3.1 updated the index.php and it has this in it: require(./’wp-blog-header.php’);
How to sync Outlook with Google so you see it on you Android Phone
My new Android phone syncs with google no problem (I’m sure since google owns android)!! The issue I ran into is that my old Iphone had a desktop sync that updated my outlook contact/calandar to my phone.. but I want something that will sync my outlook – google so my phone stays up-to-date!
Solution: http://www.sync2.com/
Works great and only $39.95
Request timeout due to the high load or the size of the requests
IBM Technote# 1403094: Cause : unable to to respond within the default ORB request timeout due to the high load or the size of the requests.
Resolution: Increase the value of ORB timeout on WebSphere admin console >> Servers > Application servers > server_name > Container services > ORB service >> set “Request Timeout” parameter to new value. ( By default its 180 seconds, try increasing it a bit, for example try setting it to 600 seconds.)
[ Websphere Ref: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/uorb_rsetg.html ]
How to kill my WebSphere JVM
It seems to happen often enough that I had to note this
If your in WebSphere counsole and stop your JVM but it doesn’t go down, or it partially goes down.. Open a command line on the server
If the JVM is called: server1
run this: ps -ef|grep server1
Then find the processID and run: kill -9 (procID)
Migrating Windows7 to New Hard Drive
I found an OpenSource project called Clonezilla (http://clonezilla.org/). This software does essentially the same thing as Norton Ghost, and there is also a version than can do distributed cloning (such as doing an install for a computer lab).
cat /proc/loadavg
5.2.16. /proc/loadavg This file provides a look at the load average in regard to both the CPU and IO over time, as well as additional data used by uptime and other commands. A sample /proc/loadavg file looks similar to the following:
0.20 0.18 0.12 1/80 11206
The first three columns measure CPU and IO utilization of the last one, five, and 10 minute periods. The fourth column shows the number of currently running processes and the total number of processes. The last column displays the last process ID used.
good link to explain load:
WebContainer thread pool to be equal at 50/50 min/max
Web container thread pool:
1. In the administrative console click Servers > Application Servers > server_name.
2. Near the bottom of the page, open Additional Properties, Thread Pools.
3. Click on WebContainer.
4. Change the Minimum Size field to whatever the Maximum is set to, probably 50.
5. Ensure that the “Allow thread allocation ?” checkbox is not checked [or that it is set to false].
6. Click OK and then save the configuration.
The application server will need to be restarted for the setting to take effect.