Re: [請益] JavaScript Memory Leak
※ 引述《TonyQ (骨頭)》之銘言:
: 簡單來說就是JavaScript所造成的記憶體殘留。(沒被釋放)
: 我怕我的敘述不夠清楚,所以找了一個說明頁。
: http://www.barelyfitz.com/screencast/javascript/memory-leak/
裝了leak monitor (Fx plug-in)之後,
確認leak來源是在 urMap Api中(後附report),
trace code看了一個小時,覺得要找出問題這點實在非我能力可及。orz
而且就算找出問題也要urMap才能解決。(煙)
只好先不理它了。
對於相對應的處理措施,
IE 只要把視窗最小化,就會自動做GC動作。
Fx 則是需要做一點最佳化的工夫才會這樣作。
至於PCMan...還沒試過,先不理它。XD
雖然有點糟糕的解法,不過也只能將就。
誰叫urMap的中文路名,有它的不可取代性......>"<
────────────────────────────────
Leaks in window 0x1e0c568:[+] [leaked object] (2726950,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (1d344d0) = [Object][+] [leaked object] (2726958,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (1d344f0) = [Object][+] [leaked object] (2726970,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (1d34500) = [Object][+] [leaked object] (27269b8,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (1d34518) = [Object][+] [leaked object] (2726870,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (26ddd80) = [Object][+] [leaked object] (2726960,
http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ]
prototype (1d34538) = [Object]
--
I am a person, and I am always thinking .
Thinking in love , Thinking in life ,
Thinking in why , Thinking in worth.
I can't believe any of what ,
I am just thinking then thinking ,
but worst of all , most of mine is thinking not actioning...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.27.68
討論串 (同標題文章)
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章