• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

sun.net.smtp.SmtpClient hanging

Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After months - if not years, I think I've traced a problem of my java application hanging intermittently. I'm using JRUN. The process javaw.exe would run at 100% cpu and I'd have to stop it and restart JRUN.

By writing a trace to the database it looks like the statement :

SmtpClient client = new SmtpClient(SMTP_SERVER_IP);

was the one. I found out that there were problems with the server at the same time as the application was having a problem.

Is there anything I can do to stop it hanging at this statement ?
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic