English 中文(简体)
在将物体留在GAE数据库之后的记忆泄漏[封闭]
原标题:Memory leak after persisting the object into GAE Datastore [closed]

请帮助我发现记忆泄露吗? 离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));
}

Visitor/code>

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$PropertyValuecom.google.storage.onestore.v3.OnesshopEntity$Property

我不想把这个职位炸毁,这样,我就从JProfiler上传了屏幕。

参考树为here。 分配树为here

I found this bug on Objectification s履带者和this threads read>>>)。 因此,我不敢肯定,他们就是谁。

问题:

1) How to avoid memory leak? 2) Does it happen in production?

感谢!

PS。 尼克,我知道你正在读。 请帮助:

最佳回答
问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

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 ...

gqlQuery returns object, want list of keys

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") ...

Integrating Google AppEngine with a Thick Client

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 ...

sorl.thumbnail : thumbnail is not a valid tag library?

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 ...

热门标签