Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Did you know that using Java Agents is inherently multi-threaded? I nearly cooked my processor finding out....

By Andrew Pollack on 03/17/2005 at 09:09 AM EDT

I discovered something interesting yesterday. I'd written some code for a project I'm working on dealing with spam management. The code examines native mime, parses and pulls out target URL's and does some things with them. This means a huge amount of text processing. Instead of doing it like I had in LotusScript, I took advantage of Java's "StringTokenizer()" class for the heavy lifting. What I noticed when I ran the agent, was that both the primary thread and the hyperthread on the processor maxed out to nearly 100% for the duration of the agent. I'm guessing that concurrent to the parse work going on in one thread, the indexing and I/O work was being done in another. This has interesting implications for high performance code.

As to my processor --- I started getting overheat warnings. When I opened the machine, I saw that the Zalman fan was packed with soot and dust. I've cleaned it, but now I realize I need a new tube of thermal grease before I can really crank this machine up and work it hard again. Ah well. For want of a nail....


There are  - loading -  comments....



Other Recent Stories...

  1. 27-08-2025Updated Quick Reference to Create SSL/TLS Certificates manually for CertStoreIt's been a long time since I've added anything about Domino here, but I wanted to put this where I'd find it next year and though some of you might find it useful as well. There's lots of instructions out there around using "LetsEncrypt" or whatever to generate short lived SSL certificates for Domino, but if you want to use a full blown certificate authority -- or maybe your company does self signed certificates and you want to use those, here's a quick reference. Prerequisite: You should already have ...... 
  2. 01/26/2023Better Running VirtualBox or VMWARE Virtual Machines on Windows 10+ Forgive me, Reader, for I have sinned. I has been nearly 3 years since my last blog entry. The truth is, I haven't had much to say that was worthy of more than a basic social media post -- until today. For my current work, I was assigned a new laptop. It's a real powerhouse machine with 14 processor cores and 64 gigs of ram. It should be perfect for running my development environment in a virtual machine, but it wasn't. VirtualBox was barely starting, and no matter how many features I turned off, it could ...... 
  3. 04/04/2020How many Ventilators for the price of those tanks the Pentagon didn't even want?This goes WAY beyond Trump or Obama. This is decades of poor planning and poor use of funds. Certainly it should have been addressed in the Trump, Obama, Bush, Clinton, Bush, and Reagan administrations -- all of which were well aware of the implications of a pandemic. I want a military prepared to help us, not just hurt other people. As an American I expect that with the ridiculous funding of our military might, we are prepared for damn near everything. Not just killing people and breaking things, but ...... 
  4. 01/28/2020Copyright Troll Warning 
  5. 03/26/2019Undestanding how OAUTH scopes will bring the concept of APPS to your Domino server 
  6. 02/05/2019Toro Yard Equipment - Not really a premium brand as far as I am concerned 
  7. 10/08/2018Will you be at the NYC Launch Event for HCL Domino v10 -- Find me! 
  8. 09/04/2018With two big projects on hold, I suddenly find myself very available for new short and long term projects.  
  9. 07/13/2018Who is HCL and why is it a good thing that they are now the ones behind Notes and Domino? 
  10. 03/21/2018Domino Apps on IOS is a Game Changer. Quit holding back. 
Click here for more articles.....


pen icon Comment Entry
Subject
Your Name
Homepage
*Your Email
* Your email address is required, but not displayed.
 
Your thoughts....
 
Remember Me  

Please wait while your document is saved.