07 Jun '13, 9am

All the reasons I hate JDK's Process subsystem in a single post. Now we have to fix it.

Did you launch a process that writes a gigabyte of data to its output stream and then terminates? Well, friend, I sure hope you have a gigabyte of memory, because the JDK is going to read that sucker in and there's nothing you can do about it. And let's hope there's not more than 2GB of data, since this code basically just grows a byte[], which in Java can only grow to 2GB. If there's more than 2GB of data on that stream, this logic errors out and the data is lost forever. Oh, and by the way...if you happened to be devlishly clever and managed to dig down to the real FileChannel attached to the child process, all the data from that stream has suddenly disappeared, and the channel itself is closed, even if you never got a chance to read from it. Thanks for the help, JDK.

Full article: http://blog.headius.com/2013/06/the-pain-of-broken-subpro...

Tweets

The Pain of Broken Subprocess Management on JDK

blog.headius.com 08 Jun '13, 1am

Did you launch a process that writes a gigabyte of data to its output stream and then terminates? Well, friend, I sure hop...

#USMC

stripes.com 07 Jun '13, 4pm

View Photo Gallery » Patty and Tom Schumacher hug after the dedication of the Operation Enduring Freedom Memorial at the S...

Marine general speaks from a broken heart at me...

stripes.com 07 Jun '13, 4pm

View Photo Gallery » Patty and Tom Schumacher hug after the dedication of the Operation Enduring Freedom Memorial at the S...

Lifestyle and consumer electronics: Gajah offer...

digitimes.com 07 Jun '13, 3am

Lifestyle and consumer electronics: Gajah offers total solutions ranging from hardware to e-content management Rodney Chan...

Pain May Come Before Gain for Private Banking i...

cnbc.com 06 Jun '13, 1am

Private banks in the Asian financial hub, Singapore, are the next target of tighter regulations after the crackdown in the...