[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Out Of Memory?  XML
Forum Index » JCVS Mailing List
Author Message
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>During a checkout of a (very) large project I get:

Exception occurred during event dispatching:
java.lang.OutOfMemoryError
at java.io.BufferedReader.<init>(Compiled Code)
at java.io.BufferedReader.<init>(Compiled Code)
at com.ice.cvsc.CVSProject.copyFileAscii(Compiled Code)
at com.ice.cvsc.CVSProject.copyFile(Compiled Code)
at com.ice.cvsc.CVSProject.updateLocalFile(Compiled Code)
at com.ice.cvsc.CVSProject.processResponseItem(Compiled Code)
at com.ice.cvsc.CVSProject.handleResponseItem(Compiled Code)
at com.ice.cvsc.CVSClient.processResponseItem(Compiled Code)
at com.ice.cvsc.CVSClient.readAndParseResponse(Compiled Code)
at com.ice.cvsc.CVSClient.processCVSRequest(Compiled Code)
at com.ice.cvsc.CVSProject.performCVSRequest(Compiled Code)
at com.ice.jcvs.CVSProjectFrame.commonCVSCommand(Compiled Code)
at com.ice.jcvs.CVSProjectFrame.performCheckOut(Compiled Code)
at com.ice.jcvs.CVSCheckoutDialog.actionPerformed(Compiled Code)
at java.awt.Button.processActionEvent(Compiled Code)
at java.awt.Button.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)

Does anyone have a suggestion? The platform is hp-ux.

-Neal-

--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Neal A. Dillman * neald@rose.hp.com -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- My opinions are. -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

</pre>

jCVS Maoiling List arvhive.
[WWW]
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>Neal A. Dillman wrote:
>
> During a checkout of a (very) large project I get:
>
> Exception occurred during event dispatching:
> java.lang.OutOfMemoryError
> at java.io.BufferedReader.<init>(Compiled Code)
>...
> at java.awt.EventDispatchThread.run(Compiled Code)
>
> Does anyone have a suggestion? The platform is hp-ux.
>

I also get the same problem on NT4 SP3 w/Sun java 1.1.6 FWIW.

--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Neal A. Dillman * neald@rose.hp.com -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- My opinions are. -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

</pre>

jCVS Maoiling List arvhive.
[WWW]
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>On Tue, Sep 15 1998, Neal A. Dillman wrote:
> During a checkout of a (very) large project I get:
>
> Exception occurred during event dispatching:
> java.lang.OutOfMemoryError
> at java.io.BufferedReader.<init>(Compiled Code)
> at java.io.BufferedReader.<init>(Compiled Code)
> at com.ice.cvsc.CVSProject.copyFileAscii(Compiled Code)
> at com.ice.cvsc.CVSProject.copyFile(Compiled Code)
> [ ... ]
> at java.awt.EventDispatchThread.run(Compiled Code)
>
> Does anyone have a suggestion? The platform is hp-ux.

Well, at some point it would be useful to know if the memory being
consumed is necessary, or if we can free up some things.

That point aside, you need to look into the -mx and -ms options
used to start java. -mx is the max memory, -ms is the starting.
You might try something along the lines of:

java -ms16m -mx64m -classpath ....

Which would up the maximum available memory to 64MB and start
the program out with 16MB.

tim.
Tim Endres, ICE Engineering, Inc.
mailto: time@ice.com http://www.ice.com
"Usenet - A slow moving self parody." -- Peter Honeyman

</pre>

jCVS Maoiling List arvhive.
[WWW]
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>
> During a checkout of a (very) large project I get:
>
> Exception occurred during event dispatching:
> java.lang.OutOfMemoryError

(Just a wild guess.
I got this error often when trying to reuse StringBuffers and
setting their size to zero.)

Try increasing the heap size for jCVS in the java call (parameter -mx on
Unix)

Cheers,
Jochen

</pre>

jCVS Maoiling List arvhive.
[WWW]
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>Hi again,

Tim Endres wrote:
> Well, at some point it would be useful to know if the memory being
> consumed is necessary, or if we can free up some things.

Is there anything that I can do to aid you here?

> That point aside, you need to look into the -mx and -ms options
> used to start java. -mx is the max memory, -ms is the starting.
> You might try something along the lines of:
>
> java -ms16m -mx64m -classpath ....

java -ms32m -mx128m ... finally did the trick.

The project in question has 321 directories and 3375 files. While jcvs
is able to do the checkout, any operations on the project are
exceedingly slow. Things like cvs status take well over a minute for a
single file.

BTW, things are even slower and more ungainly on NT. Is there anything
else I can do that would help?

Thanks again.

-Neal-


--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Neal A. Dillman * neald@rose.hp.com -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- My opinions are. -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

</pre>

jCVS Maoiling List arvhive.
[WWW]
jcvslist


[Avatar]

Joined: 03/06/2004 19:54:53
Messages: 3096
Location: Earth
Offline

<pre>On Thu, Sep 17 1998, Neal A. Dillman wrote:
> java -ms32m -mx128m ... finally did the trick.

Wow!

> The project in question has 321 directories and 3375 files. While jcvs
> is able to do the checkout, any operations on the project are
> exceedingly slow. Things like cvs status take well over a minute for a
> single file.
>
> BTW, things are even slower and more ungainly on NT. Is there anything
> else I can do that would help?

Well, the one thing that you can do is to open subtrees. You can use the
"Browse..." menu command in the main window to select any 'CVS/Entries'
file in your tree, and jCVS will display and work with only those files
in that subtree. You can add these subtree's as projects to your Project
List, which will make access to them quick and easy.

Other than that, there is little that can be done, due to the enormity
of your tree and the quantity of Objects that represents in jCVS.

tim.
Tim Endres, ICE Engineering, Inc.
mailto: time@ice.com http://www.ice.com
"Usenet - A slow moving self parody." -- Peter Honeyman

</pre>

jCVS Maoiling List arvhive.
[WWW]
 
Forum Index » JCVS Mailing List
Go to:   
Powered by JForum 2.1.9 © JForum Team