• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Erratic Behaviour of this stand Alone application

 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,
recently I have made one program which works on net package. It takes a object stream from one servlet ... process it out...and writes to another server using data streams..after reading the response from this server it writes back the data to the servlet.
In between it interacts with database and do some processing..
This is a continuous thread.
The problem is it hangs after sometime. And I found my applications at this moment stores all the request and surprisingly when I press "ctrl+c" it release all request and after submitting them it comes back to working condition without existing th porgram.
At this moment my machine does not hang.
Earlier I thought it may be because my programs takes a lot of memory. but it is so irregular it seems difficult to check.
What could be the problem .. how can i release the memory..
Does anybody has any idea?
regards,
Arun
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see why this belongs in the Swing/JFC/AWT forum... Since your problem could potentially be among several different areas ( servlets, JDBC, etc. ) I'm going to move this post to Java in General ( Intermediate ).

-Nate
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only thing I can think of is flushing (using the flush() method). Post some code
 
reply
    Bookmark Topic Watch Topic
  • New Topic