08 Jun '13, 1am

The Pain of Broken Subprocess Management on JDK

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

All the reasons I hate JDK's Process subsystem ...

blog.headius.com 07 Jun '13, 9am

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

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...

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...

Why corporate water management needs to change

Why corporate water management needs to change

greenbiz.com 07 Jun '13, 1pm

It’s safe to say I know a few things about water. I’m in my third decade working at one of the world’s leading industrial ...