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

20230228内存溢出问题 #27

Open
jcjgithub opened this issue Mar 7, 2023 · 4 comments
Open

20230228内存溢出问题 #27

jcjgithub opened this issue Mar 7, 2023 · 4 comments

Comments

@jcjgithub
Copy link

我们昨天使用官网发布的 20230228 进行操作的时候 出现堆溢出 我们分析堆溢出产生的日志文件
a123623d61bace6e875e72e756fe2b8
8f28d0f2488543c77f9ddcf4340163e
定位到是这里有问题 。
0e01340744a4e79fa599c2fcb119010
我大致看了下这里的逻辑 是在判断 string 是否全都是 ASCII码 。 这里能否优化下呢?因为你们调用 getBytes 又会在内存里面 创建一份 byte数组 对象 。如果我理解的没问题 是判断 是不是全都是 ASCII码的话 可以采用判断每个字符的码值就行了 不用在去内存里面创建一份

@liwe1980
Copy link
Contributor

liwe1980 commented Mar 7, 2023 via email

@liwe1980
Copy link
Contributor

liwe1980 commented Mar 7, 2023

修改了

@jcjgithub
Copy link
Author

image
大对象是这些

@liwe1980
Copy link
Contributor

liwe1980 commented Mar 7, 2023

已经改了,取一下试试

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