/    Sign up×
Community /Pin to ProfileBookmark

Web Workers: untold limits?

Hi,
are there some undocumented limits for Web Workers? I spawned around 60 workers doing an extremely simple test job: incrementing an integer once per second and sending back the “updated” message to the UI thread. More than 60 workers (sometime 61 or 62 will still be ok) instantly kill the webpage with a tab crash, both on Chrome 19 and Firefox 12.

Hints?
Thanks,

a.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@resleauthorMay 21.2012 — Never mind. Found my answer here

http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-December/024363.html

Today I was telling myself that javascript coding is wonderful, but you always end up banging yout head against two problems:

- Undocumented limits

- Security paranoia

And here's what that page says about this web workers issue...

... [I]user agents were free to impose limits on worker creation, but the spec should be silent on this issue.[/I]

...[I]"the topic of settings limits on Workers to avoid DOS attacks."[/I]

hah.
×

Success!

Help @resle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...