I have had the exact same problem on a W98 box.
Both DirectX 9 and IE 6 can cause W98 to develop major memory leaks.
A memory utility can help temporarily.
The answer is to either install a new video driver that fully supports DirectX 9, or to drop back to IE 5.5SP2 and DirectX 7 or 8 (depending on which version is supported by your video driver.
You can get IE 5.5 from the browser archive at www.evolt.org
You can get DirectX removal utilities from www.voodoofiles.com
I corrected my problem by formatting the hard drive and starting over.
You actually will see a noticeable performance improvement by starting over from scratch.
Unless you change NO hardware, and install very little software, a Windows installation has a working life of around 2 years.
After that, the registry grows too large and takes up too many resources.
Chas