Solved

Crash in javaw

Posted on 2000-05-10
3
381 Views
Last Modified: 2011-10-03
I have an client server application both written in java. Client is a Swing based GUI application. Server continuously pushes some data to client using TCPIP sockets at the very high rates. Every time when client receives a push, it creates a new thread. In the new thread, it updates a table model (A table is displayed on the client). The new thread dies after that.
All this works fine. But after running for couple of hours (around 10 to 15 hours), I get a crash in javaw with exception violation. I am running both the applications on Windows NT 4.0 and using JDK 1.2.2
Any clue that what might be the problem or what might be the good way to find (debug) the problem.
Thanks for any response,
Pankaj
0
Comment
Question by:pankaj012797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Expert Comment

by:hhamster
ID: 2797676
Sounds like memory leaking.
Debuging this is very hard, but try putting some memory statistic code in your source (if you have it) or check it in the system with some utility that shows which program uses how much memory.
0
 

Accepted Solution

by:
snjkrva earned 100 total points
ID: 2798202
hey pankaj,
try calling Runtime.gc() soon after the thread is dead....call in begining also....if u want u can call Thread's join method to wait for that thread to die....

regards,
sanjeev
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2799733
what about implementing Thread pool ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question