Comments (3)
确实忘了释放那个inputStream, 不过那个InputStream也只是持有一个文件句柄, 不关闭也不会占用多少内存(依然应该关闭).
建议把堆dump下来分析
from phone-number-geo.
new PhoneNumberLookup()初始化太占资源了吧,弄成静态对象试试
from phone-number-geo.
new PhoneNumberLookup()初始化太占资源了吧,弄成静态对象试试
不频繁new的话占用资源很少的, new出来的实例放静态变量或者成员变量, 不要每次调用都new一个.
from phone-number-geo.
Related Issues (14)
- 同一手机号, 使用不同算法会导致查询结果不一致 HOT 1
- 使用jdk1.8集成最新代码查询时报错 HOT 1
- 河_南部分手机号归属地无法查询,调用其他API接口可以
- 升级数据版本至202302
- [建议] 建议把运营商中文名称也写上 HOT 1
- 字符集问题 HOT 1
- 很久没有更新了,大佬
- 线程安全 HOT 1
- 无法初始化该PhoneNumberLookUp,抛出异常 HOT 6
- 缺少 getter 方法 HOT 3
- win10下报错:content format error HOT 3
- 急急急!!!! 异常 192 195 开头号码 无法识别报异常 HOT 2
- 更换 phone.dat HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phone-number-geo.