请帮助我发现记忆泄露吗? 离C++世界的Im和Java的记忆泄漏对我来说是奇怪的,因为根据我的法典,我没有提及临时物体。
I m 采用GAE SDK 1.6.1和反对3.1。
我采取的方法是在GAE dev服务器(可能与这一问题无关)的辅助下实施的。
private void loadProtoBufdata() throws Exception
{
ObjectifyDAO dao = new ObjectifyDAO();
for (long count = 0; count < 100; ++count)
{
Visitor visitor = new Visitor();
visitor.setKey(count + 1);
dao.ofy().put(visitor);
}
dao = null;
}
在异构体构造中,它被初步定为
public ObjectifyDAO()
{
super(new ObjectifyOpts().setSessionCache(false).setGlobalCache(false));
}
public class Visitor
{
@Id
Long key;
Long ek;
@Unindexed String ip;
Date t;
@Unindexed Long lzVisit;
}
I m使用JProfiler 7.0.1收集记忆泄漏。 在操作该守则之后,我几乎没有什么兆字节:com.google.storage.onestore.v3.OnestoreEntity$PropertyValue
和com.google.storage.onestore.v3.OnesshopEntity$Property
。
我不想把这个职位炸毁,这样,我就从JProfiler上传了屏幕。
I found this bug on Objectification s履带者和this threads read
问题:
1) How to avoid memory leak? 2) Does it happen in production?
感谢!
PS。 尼克,我知道你正在读。 请帮助:
http://www.eclipse.org/mat/"rel=“nofollow” http://www.eclipse.org/mat/。 这对于分析记忆泄露非常重要
见。
如果出现记忆泄露,则在提及时 something然。 一项像MAT这样的工具将帮助你看看看这些物体正在hang。
此外,你可能希望尝试生产试验。 你们可以检查 app点的记忆使用。 生产用具有时会有很大的不同。
I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...
Background I used to have a standard Linux hosting account for my domain with both http://www.tjrobinson.net/ and http://tjrobinson.net/ displaying the same content. I used http://tjrobinson.net/ as ...
I am trying to use openid/hybrid in app engine, but so far, no luck. No success with openid4java (because it creates socket etc), and no luck with dyuproject either. How do it deploy dyuproject into ...
How do I make a temporary backup of the local datastore in the AppEngine SDK for MacOSX And where are the files located?
Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...
I m trying to deploy a java application to appspot (google appengine). I m new to java, so bear with me. When I run the application locally from eclipse, it runs fine. After uploading it to google ...
I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...
I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding