Solved

Crash in javaw

Posted on 2000-05-10
3
375 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
Comment Utility
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
Comment Utility
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_
Comment Utility
what about implementing Thread pool ?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

772 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

10 Experts available now in Live!

Get 1:1 Help Now