jstat - jvm memory stats

Posted on Wed 27 October 2010 in Linux • Tagged with java, tools, linux, notepad • 1 min read

/usr/java/jdk1.5.0_22/bin/jstat -gcutil 18703 1s 10

gcutil = Summary of Garbage Collection Statistics (mandatory)
18703 = process id (mandatory)
1s = refresh interval (optional)
10 = counter (optional)

$ /usr/java/jdk1.5.0_22/bin/jstat -gcutil 25532 1s 10
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT …

Continue reading

IPv6 Adressen

Posted on Tue 26 October 2010 in IPv6 • Tagged with ipv6, notepad • 1 min read

Bahn-Streiks sind was tolles...da schafft man was :)

Aufbau einer IPv6 Adresse

128 Bit insgesamt. Die ersten 64-Bit sind für das Subnetz-Präfix reserviert, gefolgt von den letzten 64-Bit für den Host.

nnnn:nnnn:nnnn:nnnn:hhhh:hhhh:hhhh:hhhh

Jeder Block ist 16-Bit lang. Nullen am Anfang eines Blockes können …


Continue reading

Microwave chocolatecake

Posted on Fri 22 October 2010 in Life • 1 min read

cup = \~200ml

1 cup sugar
2 eggs
1 cup flour
1 cup milk
1/2 cup chocolate power
1/4 cup vegetable/sunflower oil
1 tsp/teaspoon baking powder

at first combine the eggs and the sugar...

700w \~ 5-6min

mug 2min\@700W
cup 3-4min\@700W


Create a shared disk for VMware ESX guests

Posted on Mon 11 October 2010 in Linux • Tagged with drbd8, ocfs2, Server, VMware, linux, work, howto • 1 min read

To create a shared disk between two or more VMs, login into one of your ESX hosts and create a disk image.

cd /vmfs/volumes/#volume-name#/#vm-name#/;
vmkfstools -d thick -a lsilogic -c 50G shareddisk.vmdk;

Add the new hardrive to the guest(s) and select a new SCSI bus …


Continue reading

Apache Tomcat & logrotate

Posted on Tue 31 August 2010 in Linux • Tagged with Server, SUSE Linux Enterprise Server, Linux, work, notepad • 1 min read

Some linux distribution are shiped without a config for the catalina.out (Tomcat application server) ;)

$ cat /etc/logrotate.d/tomcat
/var/log/tomcat/base/catalina.out {
    compress
    copytruncate
    create 644 tomcat tomcat
    rotate 30
    size 4M
}

The catalina.out will be rotated after 4 mb and stored for 30 days …


Continue reading

Linux routing basics

Posted on Fri 27 August 2010 in Linux • Tagged with Network, Router, Server, linux, routing • 1 min read

You getting from your ISP a subnet like this 172.30.26.16/28,
and your router has the ip 172.30.26.17 !

You need to enable the ip forwarding in the kernel

sysctl -w net.ipv4.ip_forward=1

And we need to enable proxy arp! This is necessary …


Continue reading

Ubuntu PHP hardening with Suhosin

Posted on Wed 28 July 2010 in Linux • Tagged with Debian, Security, Server, php • 1 min read

Ubuntu includes the php suhosin patches....

Install suhosin extension

aptitude install php5-suhosin

/etc/php5/{apache2,cli,cgi}/php.ini

; suhosin parameters
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = On
suhosin.executor.disable_emodifier = On
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On

Restart apache

service apache2 restart

Sometimes it could …


Continue reading

Postfix as relayhost with SASL auth

Posted on Wed 21 July 2010 in Linux • Tagged with Debian, Postfix, Server, mail, sasl • 1 min read

Client configuration (notebook, workstation what ever)

  1. Edit your /etc/postfix/main.cf
  2. Create your passwordmap - /etc/postfix/sasl_passwords
  3. Run postmap for /etc/postfix/sasl_passwords

Server configuration

  1. Nothing if you have already a working mail server. That the user (/etc/postfix/sasl_passwords) must exists on the server is plausible ? Check your …

Continue reading

Lenny Linux rockz...

Posted on Wed 30 June 2010 in Linux • Tagged with Found, Linux • 1 min read

Watch it !

[http://www.youtube.com/watch?v=6gbNZK60Xe4]{style="text-decoration: line-through;"}

YouTube - "This video is no longer available due to a copyright claim by Alley Music Corp.." - :(

http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg …


Continue reading

z-push, imap server and *irony* a user-friendly Debian whatever *irony*

Posted on Sun 09 May 2010 in Linux • Tagged with Linux, Server • 1 min read

If you want to use z-push with your imap server (which requires php5-imap) you must add to following line to you /etc/php5/apache2/conf.d/imap.ini file

# configuration for php IMAP module
extension=imap.so

Why is that not set Debian ?