Search This Blog

Saturday, May 28, 2011

Kungfu Panda 2 Movies

Have you watch Kungfu Panda 2 movies? This Family 3D Action Cartoon movies was launched several days ago in the US. it will follows the story of the Panda po, Po (Jack Black) the overweight panda has been proclaimed the almighty "Dragon Warrior," and oversees the safety of China with his band of capable sidekicks, the Furious Five: Tigress (Angelina Jolie), Mantis (Seth Rogen), Monkey (Jackie

Thursday, May 26, 2011

Melanie Lynskey From Two and a Half Men

Melanie Lynskey is a very talented actress that has been acting since she was 16 years old. Her first big production was Peter Jackson's Heavenly Creatures. That movie got an academy award, and was Melanie Lynskey's big break. She was also in a movie with Drew Barrymore called EverAfter in 1998. It was a good movie, but mostly a chick flick. She was also in Detroit Rock City which is one of my favorite movies. She also has come out in a number of television shows including her big role in Two and a Half Men as a psycho neighbor stalker. She is very pretty, here are some really hot pictures I have found of her on the internet...





Sunday, May 22, 2011

PostgreSQL - strange database server errors under Windows

I often use PostgreSQL as a database server for my web applications which are usually deployed under Tomcat. PostgreSQL and Tomcat are registered as system services which starts automatically when Windows starts. 

In one of my application I have about 50 different databases with connection pools for each database, where each pool has about 10 connections opened. So I have about 500 connections opened for requests. Each opened connection is visible as a separate postgres.exe process in the system next to the own PostgreSQL processes also visible as postgres.exe (usually 5 processes). Sometimes under Windows XP Prof. SP 3 I saw PostgreSQL stop working and in the server logs there were errors like:
  •  java.net.SocketException: No buffer space available (maximum connections reached?): recv failed
or:  
  • server process (PID XXXX) was terminated by exception 0xC0000142 HINT:  See C include file "ntstatus.h" for a description of the hexadecimal value.
--------------------------------------------
No buffer space available error:

"Maximum connection reached" may suggest that we set too low value of max_connections in postgresql.conf file. Let's assume that settings for connections amount and required memory are OK for the server, but the problem is still visible from time to time.

The first thing to be checked is amount of short-lived ports (ephemeral). Those ports are used by applications during their normal work. They are opened and live until certain application works, in comparison to server application ports that are typically open for the entire time that the server computer is running. They are assigned automatically from predefined range. Range differs between operating systems:

a) Windows 2000 -> from 1024 to 5000
b) Windows 2003 Server -> from 1024 to 5000
c) Windows XP (all service packs) -> from 1024 to 5000
d) Windows Vista -> from 49152 to 65535
e) Windows 2008 Server -> from 49152 to 65535
f) Windows 7 -> from 49152 to 65535
g) Linux kernels -> from 32768 to 61000 (see /proc/sys/net/ipv4/ip_local_port_range)

If the available pool of ephemeral ports is exahsuted we see Windows WSAENOBUFS error (no buffer space, code 10055). In order to check for exceeded range, we have to see how many processes are running in the system and how many ports they are opening - we can use free TCPView application. We can kill the process that causes exceeding or we can increase the range of ephemeral ports. If we want to increase it, we have to change a registry entry named maxUserPort in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\maxUserPort
 
If that registry entry does not exist it means that system uses default value (see above) and we have to create this entry. Then we have to set a proper value for that entry (REG_DWORD) from the range 5000 to 65534. 

The second thing to be checked is limit of half-opened TCP/IP connections (connection with state SYN-RCVD). When this limit is exceeded, TCP/IP starts up SYN flooding attack protection (when SynAttackProtect is enabled). This limit differs between operating systems:

a) Windows 2000 Workstation -> 500
b) Windows 2000 Server -> 100
c) Windows Server 2003 -> 500 
d) Windows XP SP 1 -> 100
e) Windows XP SP 2, SP3 -> 10
f) Windows Vista SP 1 -> 10
g) Windows Vista SP 2 -> limit removed (not implmented = unlimited)
h) Windows Server 2008 SP 1 -> 10
i) Windows Server 2008 SP 2 -> limit removed (not implemented = unlimited)
f) Windows 7 -> limit removed (not implemented = unlimited) 

We can use mentioned TCPView application to check for half-opened TCP connections. This limit can be increased by changing the registry entry named TcpMaxHalfOpen in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpMaxHalfOpen

If that registry entry does not exist it means that system uses default value (see above) and we have to create this entry and then manualy assign new value.

Under Windows Vista SP2, Windows 7 or Linux I did not see that error.

--------------------------------------------
0xC0000142 error:

This problem is not so easy to explain, although I was able to fix it. The error code means that "A dynamic link library (DLL) initialization routine failed." I am not sure what exacly causes this... 

In my case under Windows XP Prof. SP 3, when I started my application and number of postgres.exe processes was about 100 (it should be about 500, see description at the top) the whole database server process was suddenly terminated and I saw second mentioned error (with error code 0xC0000142) in the logs. The most important part here is that PostgreSQL service, which spawned many postgres.exe child processes, was registered under LOCAL SYSTEM account, without "Allow Service to Interact with Desktop" option set.

It seems that this problem is not only connected with PostgreSQL. It is general problem with services and their subprocesses (see this and that article). From the information found the problem my be connected with so-called desktop heaps (see more here and here). Some people having similar problems with many subprocesses did the workaround by setting "Allow Service to Interact with Desktop" to true for their LOCAL SYSTEM services. I was able to fix it under Windows XP Prof. SP 3, by registering PostgreSQL service for regular user account instead of LOCAL SYSTEM (see "Long Version" from my article about manual installation of PostgreSQL how to do this). I also checked this under Windows Vista SP2 and Windows 7 - it works OK there, even under LOCAL SYSTEM account. Under Linux I did not see that error.

I did not try to assign more desktop heap from default for Windows XP SharedSection=1024,3072,512 (2nd or 3rd value needs to be changed) and then try it again to run under LOCAL SYSTEM without "Allow Service to Interact with Desktop". Perhaps this might also help.

Saturday, May 14, 2011

William Levy and Elizabeth Gutierrez Ended their Relationship

William Levy and Elizabeth Gutierez finally confirms about their separation. after 8 years relationship, elizabeth gutierrez ended her relationship with william levy.

Yes we know that william levy and elizabeth gutierrez was never married. elizabeth has 2 children from william levy. Wait anyway who is william levy? William levy was known as a telenovela actor who appear in triunfo del amor

Friday, May 13, 2011

Foto Topless Agni Pratistha | Foto Seksi Putri Indonesia 2006

Foto syur topless mantan putri indonesia agni pratistha beredar. entah apakah foto yang dimaksud adalah hasil kreasi photoshop atau foto asli. namun menurut informasi yang kami terima. foto topless agni pratistha yang dimaksud sudah lama dibuat nya.

Berikut sedikit biografi singkat agni pratistha. Gaadis cantik kelahiran Canberra, Australia, 8 Desember 1987 tersebut merupakan puti indonesia

Thursday, May 12, 2011

Foto Syur Jessica Iskandar Beredar | Download Foto Hot Terbaru

Waduh foto syur jessica iskandar beredar? sepertinya hari ini banyak yang mencari seperti apa sih foto hot nya jessica iskandar dengan mantan kekasihnya yang bernama alvalon carpenter? sepertinya sih tidak terlalu hot dan syur kalau saya lihat tapi entah kenapa semua orang ramai membicarakan nya.

Nih dia foto yang saya dapat. ini seperti nya sih foto lama. namun jessica iskandar hingga kini

Friday, May 6, 2011

Paul McCartney Tunangan dengan Nancy Shevell

Paul Mccartney musisi legendaris mantan bassis the beatles telah resmi bertunangan dengan Nancy Shevell. Jika pertunangan ini berlanjut kepada pernikahan maka ini adalah pernikahan ke 3 dari paul. sebelumnya paul mccartney menikah dengan linda eastman istri pertama nya lalu menikah lagi dengan heather mills dan kini dengan nancy shevell.

Walaupun usia paul Mccartney kini sudah tidak muda lagi

Thursday, May 5, 2011

Desy ratnasari Comeback ke Sinetron

Bintang sinetron lawas yang juga dikenal sebagai penyanyi Desy Ratnasari kembali ke sinetron setelah beberapa tahun ini vakum. desy ratnasari dulu pernah menjadi salah satu artis sinetron paling top di indonesia.

Kabarnya desy ratnasari akan come back ke layar kaca dengan sinetron berjudul cahaya cinta yang akan segera tayang. seperti apa sinetron tersebut dan bagaimana akting desy ratnasari

Foto Hot Briptu Norman dengan Indri Beredar

Foto ciuman briptu norman polisi gorontalo yang tenar atas aksi lip sync lagu india chal chaya chaya beredar. Foto ini ditemukan dari akun facebook kekasih briptu norman yang bernama indri. sepertinya ini hanyalah foto koleksi pribadi dari norman kamaru dengan indri kekasihnya. namun ternyata foto ini menuai kontroversi. kabarnya polri akan mengusut kasus foto syur ciuman briptu norman kamaru di

Monday, May 2, 2011

Katy Perry Is a Singer who Looks Very Hot and Sexy

Katy Perry was born into a Christian household, and her parents were even pastors. This hasn't stopped her from releasing some pretty controversial songs about different things in our society that are looked down upon by many Christian families. She has made a lot of money with these controversial songs. She is famous for the songs "I Kissed a Girl", "Ur So Gay", and "E.T. Extra Terrestrial". They all seem to point to ideals and beliefs that are totally anti-Christian. That doesn't stop anyone from listening to them though and playing them on the radio. In any event Katy Perry is really hot when she is not dressed as a reptilian shape shifter from another planet....Here are some hot pictures of Katy Perry...





Osama Bin Laden Dipastikan Tewas di Pakistan

Pemimpin Jaringan teroris Al-Qaeda osama bin laden dipastikan tewas dalam adu senjata di sebuah bangunan besar di Abbotabad, sekitar 35 mil dari Islamabad. Berita tewasnya osama bin laden memang mengejutkan dunia. namun apakah osama bin laden betul betul tewas? Hingga kini belum ada laporan tentang bagaimana osama tewas walaupun menurut hasil Tes DNA sudah bisa dipastikan bahwa itu memang osama