Solved

Crash in javaw

Posted on 2000-05-10
3
377 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now