Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

java memory leak in cygwin('s Xwin)?

Thread view: 
m4r3ck - 10 Oct 2006 12:03 GMT
Hey,
do you have any experience with running java with forms (GUI) on
cygwin?

WARNING: long post :)

I have a java application (for working (export, import, generate,
delete) with db data stored on a UNIX server) which I've tried to run
in UNIX (telnet). Cygwin serves for transfering of the graphical output
to windows (Xwin utility) When I launch it, everything works fine (i
see emulated java forms ...)

But when I start a project after 50 minutes, maybe hour (of working
over db) I've got a message on the standard output:
"Exit"       (which is not my message)
and the application is closed.

I've checked the used memory of the process and its increasing (about
20k) when I send to the GUI output some info about proceeded commits
and additional messages. During a deeper "testing" I've found that when
I proceed {maximalize,minimalize main form} for few times, the used
memory increases about 200k and grows for every iteration of this few
repeating of maximising/minimising

But when I run the appl in a mod, without the GUI it finish
successfully without any error, with constant memory usage. Also
running on M$ Windowz shows not any problems with memory (with and w\o
GUI).

On cygwings faq page is nothing about this and the next step in their
"recommendations" before mailing them was to ask on a forum\group for
java users...

Huh, a long post.
Do you have heard something about that or have some own experience with
this behaviour?

PS: sorry for posting to this group but i haven't found the right with
some living posters
Christopher Benson-Manica - 10 Oct 2006 13:23 GMT
> PS: sorry for posting to this group but i haven't found the right with
> some living posters

The cygwin mailing list gets more than a thousand messages a month;
have you tried that?

Signature

C. Benson Manica           | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com      | don't, I need to know.  Flames welcome.

David Lee Lambert - 10 Oct 2006 20:53 GMT
> [...] During a deeper "testing" I've found that
> when I proceed {maximalize,minimalize main form} for few times, the used
> memory increases about 200k and grows for every iteration of this few
> repeating of maximising/minimising

This does sound like about the size of a new thread,  and you should check
that you've used the API (Swing? AWT?) correctly.

> But when I run the appl in a mod, without the GUI it [finishes]
> successfully without any error, with constant memory usage. Also running
[quoted text clipped - 3 lines]
> in their "recommendations" before mailing them was to ask on a
> forum\group for java users...

I would suggest seeing if this problem appears with another X server,
such as Xvnc or the console of whatever OS you're running.  Also,  what
version of the JRE are you using to run your Java code?  Have you tried a
different one?

Signature

PGP key posted on website ... http://www.lmert.com/people/davidl/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.