A blog about software development, primarily in Java and about web applications.

Wednesday, June 9, 2010

TCP Window Scaling with Solaris and Linux

We've been having an annoying problem in which we can not insert large blobs to our Oracle 11g database. The solution was found by one of our security engineers. We needed to turn the tcp window scaling off. To temporarily test this out you can run this command as root:
bash-3.00# ndd -set /dev/tcp tcp_wscale_always 0

The original value for this tunable option was '1'. Interesting, running this command on the Linux (Oracle 11g) side had no effect. Running it on the Solaris (Tomcat Application Server) side solved the problem.

Fyi...to view the current setting of this property, you can run:
$ /usr/sbin/ndd -get /dev/tcp tcp_wscale_always

A value of 0 is off. A value of 1 is on. I'm able to run this command as myself. I don't need to be root.

3 comments:

NorbertM_Ruley1231朝宜 said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.