🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #28265

Re: Out of memory

#28265
From: manuel
Date: Tue, 12 May 1998 00:00
27 lines
1474 bytes
Hola,

On 11 May 1998 18:40:16 GMT, "Ozelin" <ozelopez@publynet.com> wrote:

>Continuamente me sale un error del tipo Not enough Memory...., o algo as�.
>El programa que lo produce, lo forman unas 30 clases que se llaman las unas
>a las otras, pero no he previsto ningun tipo de destructor de clase (como
>en C++), porque yo confiaba en el recolector de basura.
>
>	Alguien me puede echar una manilla al respecto ?
>
>	Por qu� me sale ese error, y como lo puedo solucionar ?

Prueba a usar el m�todo gc() de la clase java.lang.System 

 public static void gc() 

 Runs the garbage collector.   

 Calling the gc method suggests that the Java Virtual  Machine expend
effort toward recycling unused objects in order to  make the memory
they currently occupy available for quick reuse.  When control returns
from the method call, the Java Virtual  Machine has made a best effort
to reclaim space from all unused  objects.  

Un saludo.
Technical Details
Message-ID: <355874f9.7373843@diana.ibernet.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd7d09$d106bfa0$LocalHost@HELPERION>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1116f3,523c0f95a6c332c1
X-Google-Attributes: gid1116f3,public
From: javadist@geocities.com (manuel)
Subject: Re: Out of memory
Date: 1998/05/12
Message-ID: <355874f9.7373843@diana.ibernet.es>
X-Deja-AN: 352492951
Content-Transfer-Encoding: 8bit
References: <01bd7d09$d106bfa0$LocalHost@HELPERION>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Organization: Telefonica Transmision de Datos
Newsgroups: es.comp.lenguajes.java