Solved

Crash in javaw

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet example 17 51
by zero exception 10 52
Problem to Alipay 10 43
Notify sent to other threads in Java 9 33
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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 …

856 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