Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.OutOfMemoryError: Java heap space #1123

Open
meikey opened this issue Jul 27, 2023 · 1 comment
Open

java.lang.OutOfMemoryError: Java heap space #1123

meikey opened this issue Jul 27, 2023 · 1 comment

Comments

@meikey
Copy link

meikey commented Jul 27, 2023

HttpClientDownloader重写内容,扫描途中 Java heap space,线程 2

Exception in thread "pool-5-thread-3" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.StringCoding.safeTrim(StringCoding.java:89)
at java.lang.StringCoding.access$100(StringCoding.java:50)
at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:154)
at java.lang.StringCoding.decode(StringCoding.java:193)
at java.lang.String.(String.java:426)
at java.lang.String.(String.java:491)
at com.nine.rivers.apps.sitemonitor.modules.base.downloader.HttpClientDownloader.handleRespo
nse(HttpClientDownloader.java:157)
at com.nine.rivers.apps.sitemonitor.modules.base.downloader.HttpClientDownloader.download(Ht
tpClientDownloader.java:112)
at us.codecraft.webmagic.Spider.processRequest(Spider.java:445)
at us.codecraft.webmagic.Spider.access$000(Spider.java:65)
at us.codecraft.webmagic.Spider$1.run(Spider.java:349)
at us.codecraft.webmagic.thread.CountableThreadPool$1.run(CountableThreadPool.java:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

@sutra
Copy link
Collaborator

sutra commented Jul 29, 2023

HttpClientDownloader重写内容

这句话啥意思?你继承了 HttpClientDownloader?并重写了其中的某些 methods?那估计得把你重写的部分发出来才能看出来为啥。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants