Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Javascript Memory Limit

Reply
Thread Tools

Javascript Memory Limit

 
 
raphpell
Guest
Posts: n/a
 
      05-30-2009
Hi,

I reached Javascript memory limit in all browser ( IE, Firefox,
Chrome, Opera, ...). Is there an issue ?
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      05-30-2009
raphpell wrote:
> I reached Javascript memory limit in all browser ( IE, Firefox,
> Chrome, Opera, ...). Is there an issue ?


<http://www.catb.org/~esr/faqs/smart-questions.html>
 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      05-30-2009
raphpell schreef:
> Hi,
>
> I reached Javascript memory limit in all browser ( IE, Firefox,
> Chrome, Opera, ...). Is there an issue ?


Hi,

I advise you to buy 8.000.000 Gigs extra and plug them into your computer.
You might want to consider to develop a new OS that can address that
much memory.
Maybe that helps. Not sure.

If the above doesn't help, please post the sourcecode of your new OS in
here so we can have a look at it.

Regards,
Erwin Moller

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
 
Reply With Quote
 
Doug Gunnoe
Guest
Posts: n/a
 
      05-31-2009
On May 30, 10:30*am, raphpell <pellicierraph...@neuf.fr> wrote:
> Hi,
>
> I reached Javascript memory limit in all browser ( IE, Firefox,
> Chrome, Opera, ...). Is there an issue ?


I think there might be an issue.

You appear to be reaching the memory limit in all the browsers.
 
Reply With Quote
 
Dr J R Stockton
Guest
Posts: n/a
 
      05-31-2009
In comp.lang.javascript message <49778665-56b9-4190-8e29-ee0624086ed0@h2
3g2000vbc.googlegroups.com>, Sat, 30 May 2009 08:30:56, raphpell
<> posted:

>I reached Javascript memory limit in all browser ( IE, Firefox,
>Chrome, Opera, ...). Is there an issue ?



It would he helpful if you were to post in French, in which you would
clearly be able to express yourself more elegantly and in more detail.
You can put an "English" version for those of the less well educated who
have not yet discovered Google Translate; and you can ignore complaints
from the uncouth.


ISTM that there are two (or more) limits to consider.

In a given implementation of JavaScript, there will be limits on the
number and size of objects due to internal addressing using numbers of
limited length (that's not a requirement, but it is to be expected;
those numbers could well be 16- or 32-bit).


And in a given host system, there will be a limit on the amount of
actual RAM which your JavaScript can be given. If more is needed, RAM
will be swapped in and out from disc; and your code will then probably
become unacceptably slow.

I have, in estrcons.htm, a section that calculated repeats of Gregorian
Easter date sequences - for example, 1948-2047 repeats 2100-2199,
1498-3600 repeats 427098-429200. Ideally, I'd check over, say,
5,720,000 years. For efficiency, one needs an array of the date (of
March) of Easter for all years covered, and a quantity of other arrays
to keep track of what has been found. The present code works well for
600,000 years; but above that, thrashing sets in.


In the first case, the JavaScript system should give a definite error
message and quit. It cannot be reasonably expected, in the second case,
to recognise when to give up.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
 
Reply With Quote
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      05-31-2009
Dr J R Stockton <> writes:

> ISTM that there are two (or more) limits to consider.
>
> In a given implementation of JavaScript, there will be limits on the
> number and size of objects due to internal addressing using numbers of
> limited length (that's not a requirement, but it is to be expected;
> those numbers could well be 16- or 32-bit).


> And in a given host system, there will be a limit on the amount of
> actual RAM which your JavaScript can be given. If more is needed, RAM
> will be swapped in and out from disc; and your code will then probably
> become unacceptably slow.


A thirds limit is the stack size. Nesting function calls too deep
(typically by a mistakenly limitless recursion) will exhaust the stack
and force the program to stop. This might be reported as an
out-of-memory condition.
This is more likely to happen than either of the other two (as you say,
the program will likely crawl to a halt before exhausting available heap
memory).

A fourth possibility is a limit on the size of a single object or
value. An attempt to create one can also be reported as an
out-of-memory condition, saying, efficiently "there isn't enough
free space for *that*". This can also happen when creating a very
large string, even if the internal representation doesn't take up
that much memory. E.g.:

var x = "x";
for (var i = 0; i < 32; i++) { x = x + x;}
alert(x.length);

/L
--
Lasse Reichstein Holst Nielsen
'Javascript frameworks is a disruptive technology'

 
Reply With Quote
 
raphpell
Guest
Posts: n/a
 
      05-31-2009
Merci beaucoup,
Je voulais dire, "J'ai écrit un programme sans bug, mais après pas mal
de clique, quelques objets et fonctions ont disparu...
Pas d'exception n'a été lancé par les navigateurs."

Ce n'est pas dû à la :
1. taille limite d'un objet ou d'une valeur ( quoique, quel objet ? )
2. taille de la pile ( see the stack overflow error )
3. limite de RAM disponible

C'est probablement dû à une limite en nombre et en taille d'objet,
mais je n'ai trouvé aucune information dessus. Je pense qu'au moins
une erreur devrais être lancé par les navigateurs.
Mes meilleures salutations.

Désolé pour mes difficultés en français !

Thanks a lot,
I wanted to say "I wrote a program with no bugs, but after a lot of
click, some objects or functions have disappeared...
No exception was throwed by navigators."

It was not due to the :
1. limit on the size of a single object or value ( What's up dock,
bugs bunny )
2. stack size
3. limit on the amount of RAM.

It's probably due to a limit on the number and size of objects but I
found anything about it. I guess that navigators will throw an error
when it occurs.
My best regards.

Sorry for my little english...

 
Reply With Quote
 
raphpell
Guest
Posts: n/a
 
      05-31-2009
I must be mistaken...
Go to www.creation-web.info/App/
 
Reply With Quote
 
raphpell
Guest
Posts: n/a
 
      06-01-2009
.... it was a simple script error... merci pour tout.
It was my stupid implementation of the function waitObject.
Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some shareware has a time limit and the software will not work after the time limit has expired. anthony crowder Computer Support 20 01-16-2007 10:01 AM
c program, file size limit, how to solve? 2G bytes limit. guru.slt@gmail.com C++ 1 06-27-2005 11:05 PM
Size limit for web.config, and how is it stored in memory Mike Sharp ASP .Net 1 04-22-2005 01:32 AM
Differences between Sony Memory Stick & memory Stick Pro vs Memory Stick Duo? zxcvar Digital Photography 3 11-28-2004 10:48 PM
How can you specify and determine the memory limit of an ASP.NET application Tomas ASP .Net 0 01-21-2004 11:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57