Industry


Ads by TechWords

See your link here


Sharky's picture
Sharky

Shark Tank

Oops!

Consultant pilot fish is hired to help debug a company's homegrown purchase-order system.

“The way the system worked, it would go to a secure FTP site and retrieve order information,” fish says.

“Then it would create a file for each page of an order. Some orders could be 15 pages long, thus creating 15 separate files, which used a specific naming convention that was recognized by the client program that ran at each user's desk.”

The employee who built the system is long gone, but fish does have the source code. And he knows the system worked well when it was installed three years before, but it started slowing down since -- and the company has replaced the server and client workstations, but it still keeps getting slower.

Fish has been hired to see if the problem is in the software. But nothing in the code looks seriously wrong, so he decides to look in the folder that the system retrieves files from.

Each user's PC has a drive letter mapped to the central file share. Fish clicks on the drive letter, and the PC he's using locks up for several minutes before it finally responds.

“I became suspicious, so I went to a command prompt, switched to the drive letter and did a DIR command,” says fish.

“Several minutes later, my command was finished. There were thousands of files from orders dating back several years!”

But that alone shouldn't make the system crawl. Fish goes hunting for the server, and it turns out to be a PC running Windows XP.

It's only when he checks what processes are actually running on the PC that the answer comes clear. It turns out that the Microsoft indexing agent is running constantly, trying to index an ever-growing mountain of files.

Everything is working as designed: The orders are being added automatically and retrieved by the client programs. The only thing wrong is that nothing is ever being deleted.

“The easiest solution was to write a simple script to archive data older than three months, since they never needed files for more than that time,” fish says. “I wrote the script in an hour, and after the script ran one time, the little homegrown system worked very well.

“I felt good that I was able to resolve the problem without having to rewrite someone else's code.”

Feed the Shark! Send me your true tale of IT life at sharky@computerworld.com. You'll score a sharp Shark shirt if I use it. Add your comments below, and read some great old tales in the Sharkives.

Now you can post your own stories of IT ridiculousness at Shark Bait. Join today and vent your IT frustrations to people who've been there, done that.

What People Are Saying

good story

I'm glad that you were able to resolve the issue without having to rewrite the code that someone else had written. That seems to be a constand challenge.

Good luck in the future, and great article!

delete old files - PLEASE!

A few years back, my department head at the big bank I worked at had a choice of 2 systems to buy; he bought the one we told him not to buy. One of the issues with that system is that it needed a bit of maintenance - as it collected data from thousands of PC's globally it deposited little files with that data into the root directory of the server. There was no automatic clean up routine though any competent SA could clean up the mess in a few minutes once a month. But the tech manager of the department was too lazy to do it or assign someone to do it. One day, root had no space left; the PC around the world would try over and over again to send their data but the server couldn't take it. It slammed the network, and traders all around the world couldn't work.

Bad design, real poor management decision, and a lazy .... who should have been...

To everyone stuck at work today

Eat me. I'm sitting on the beach.

Yours,

F L U F

Just an FYI...

Just to let you know, on July 3rd, I was touring King Ludwig's Neuschwanstein Castle, in the Bavaria region of Germany.

You may have been sitting on the beach, but I wasn't within miles of a computer with e-mail or internet access.

No computer, no cell phone, no blackberry... It was a great two weeks.

F L U F- YOU TATSE RALLY

F L U F-

YOU TATSE RALLY GOOD. JIM TEH BOOS PROVIDED YOU FRO LUNCH, AS HE CUTTIG COSTTS WHEREEVER POSSSIBLE.

THERE IS SUCH A FREE THIG A FREE LUCH, AFTER ALL.

GGrrraaAAAaaawwwWWWwwwllLLLLll

nice timing f-l-u-f-fy. i got off the cinema of Trans_action then spent two hours resuscitating a hanging server from (you need not guess).

but the problem was i think from sep.11 antivirus (why do i have to rot on earth with this globally-mandated memory hog) which at times is worse than any virus.

Pager and cell phone are off...

...as The Arch Demon wanders the hills of the Ozarks today. Have a good 'un all y'all.

CAPTCHA: IPG buxom - what F L U F is checking out at the beach today

Ozarks

Isn't that where a certain southern governor was supposed to have gone with no cell or pager?

Arkansas, Argentina...

It's all about the same without cell phone or pager.

CAPTCHA: waysides Mayor - Bubba Johnson, mayor of Waysides, Arkansas or Waysides, Argentina.

Hey, TAD!

I've just come back from a trip over near Devil's Den, brought back about 100 lbs. of fossil-laden rocks from a different geological age that we have here in Benton County. I'll be out hammerin' rocks all afternoon.

Happy weekend to all!!!!!