Thread WWW::Scripter verbraucht viel Resourcen (13 answers)
Opened by IceRage at 2010-03-07 20:29

IceRage
 2010-03-08 13:46
#134257 #134257
User since
2008-09-07
93 Artikel
BenutzerIn
[default_avatar]
Das geht schon in die Richtung meiner Vermutung. Deswegen hatte ich das auch schon einmal ausprobiert und zwar mit:

Code (perl): (dl )
1
2
my %attributes = (max_docs => 1, max_history => 1);
my $www = new WWW::Scripter %attributes;


Wobei ich allerdings nicht sicher bin, ob das so richtig ist.

Sollte das so richtig sein, dann führt es leider auch nicht zum gewünschten Ergebnis. Die Speicherauslastung wird schon nach 5 Seitenaufrufen, um ca. 200MB größer. Ich werde jetzt hier auch noch einmal den Konsolenlog veröffentlichen. Ich kenne mich damit nicht wirklich gut aus, aber vielleicht kann jemand bei der Interpretation behilflich sein:

Code: (dl )
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
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: null has no properties, not even one named bgColor at http://www.relink.us/js/view.js, line 40.
TypeError: undefined has no properties, not even one named toLowerCase at http://www.strato.de/imperia/md/content/strato_de/js/default/swfobject.js, line 80.
TypeError: The object's 'captureEvents' property (undefined) is not a function at http://www.ilove.de/s/dtf/html/js/common.js, line 183.
TypeError: undefined has no properties, not even one named length at http://www.ilove.de/s/dtf/html/js/indextools_DE_v4.47.js, line 172.
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: null has no properties, not even one named bgColor at http://www.relink.us/js/view.js, line 40.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/ga.js, line 11.
TypeError: undefined has no properties, not even one named length at http://d.yimg.com/mi/eu/ywa.js, line 691.
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: The object's 'javaEnabled' property (undefined) is not a function at http://www.google-analytics.com/urchin.js, line 374.
TypeError: null has no properties, not even one named bgColor at http://www.relink.us/js/view.js, line 40.
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.
Error: Can't locate object method "keys" via package "JE::Undefined" at /usr/local/share/perl/5.10.0/JE/LValue.pm line 131.
ReferenceError: The variable setInterval has not been declared at http://www.shragle.com/files/334f0ac5/002.rar, line 71.
SyntaxError: Expected semicolon, '}' or end of line but found ' var proce' at http://www.shragle.com/files/334f0ac5/002.rar, line 1.
TypeError: The object's 'setInterval' property (undefined) is not a function at http://www.shragle.com/files/334f0ac5/002.rar, line 90.
TypeError: null has no properties, not even one named bgColor at http://www.relink.us/js/view.js, line 40.
TypeError: undefined has no properties, not even one named substring at http://zx.alicecomfort.de:80/ppv/images/programs/2614/tr/zanox.html?cookieValue=ALICE_HTB=SVYuODAuMTAwMSN6YW5veCMxMjMwOTg4NUMxMTE0MTAzMTg4UzI1MjVUMTM0NzkxMjQwNDY1MDE3NTQ5MCMjdHJ1ZQ==;path=/;domain=.alicecomfort.de;expires=Sat,%2013%20Mar%202010%2012:42:51%20GMT&target=empty_avo.html, line 150.
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.
Error: Can't locate object method "keys" via package "JE::Undefined" at /usr/local/share/perl/5.10.0/JE/LValue.pm line 131.
ReferenceError: The variable setInterval has not been declared at http://www.shragle.com/files/c9719b5f/855.part1.rar, line 71.
SyntaxError: Expected semicolon, '}' or end of line but found ' var proce' at http://www.shragle.com/files/c9719b5f/855.part1.rar, line 1.
TypeError: The object's 'setInterval' property (undefined) is not a function at http://www.shragle.com/files/c9719b5f/855.part1.rar, line 90.
TypeError: null has no properties, not even one named bgColor at http://www.relink.us/js/view.js, line 40.
TypeError: null has no properties, not even one named style at http://www.usemax.de/layer.php?userid=2525, line 60.


Sieht nach fehlerhaften Skriptaufrufen aus. Ob diese allerdings mit dem hohen Speicherbedarf einhergehen, halte ich für fraglich; bin mir da aber nicht sicher, wie gesagt.

View full thread WWW::Scripter verbraucht viel Resourcen