Javascript windows azure中Neo4j虚拟机的性能不佳

Javascript windows azure中Neo4j虚拟机的性能不佳,javascript,azure,neo4j,Javascript,Azure,Neo4j,我已经在windows azure中创建了Neo4j虚拟机。如何提高它的性能?现在简单查询也需要30-50秒的时间。如何改进?任何人都可以提供帮助吗 下面给出了我的示例数据模型 public class Users { public string email { get; set; } public string password { get; set; } public s

我已经在windows azure中创建了Neo4j虚拟机。如何提高它的性能?现在简单查询也需要30-50秒的时间。如何改进?任何人都可以提供帮助吗

下面给出了我的示例数据模型

public class Users
{
    public string email
    {
        get;
        set;
    }
    public string password
    {
        get;
        set;

    }
    public string firstname
    {
        get;
        set;
    }
    public string lastname
    {
        get;
        set;
    }
    public string dob
    {
        get;
        set;
    }
    public string gender
    {
        get;
        set;
    }

    public string id
    {
        get;
        set;
    }
    public string facebookId
    {
        get;
        set;
    }
    public string googleId
    {
        get;
        set;
    }
    public string profile_pic
    {
        get;
        set;
    }
    public Guid Recoverid
    {
        get;
        set;
    }
    public Guid Emailverification
    {
        get;
        set;
    }
    public string HighSchool
    {
        get;
        set;
    }
    public string College
    {
        get;
        set;
    }
    public string Employer
    {
        get;
        set;
    }
    public string Currentcity
    {

        get;
        set;
    }
    public string HomeTown
    {
        get;
        set;
    }
    public bool registerationstatus
    {
        get;
        set;
    }
    public string Language
    {
        get;
        set;

    }
    public string Username
    {
        get;
        set;
    }
    public string FullName
    {
        get;
        set;
    }
    public string joinDate
    {
        get;
        set;
    }
    public string primeryrecoverymail
    {
        get;
        set;
    }
    public string secondaryrecoverymail
    {
        get;
        set;
    }
    public string loginnotification
    {
        get;
        set;
    }
    public string Mobileno1
    {
        get;
        set;
    }
    public string Mobileno2
    {
        get;
        set;
    }
    public string FuturePostSettings
    {
        get;
        set;
    }
    public string FriendrequestSettings
    {
        get;
        set;
    }
    public string Contactmesettings
    {
        get;
        set;
    }
    public string Lookmebymail
    {
        get;
        set;
    }
    public string LookmebyPhone
    {
        get;
        set;
    }
    public string isvisible
    {

        get;
        set;
    }
    public string userstatus
    {
        get;
        set;
    }



    #endregion

}
查询是
var data=client.Cypher.Match(((用户:用户)”)。其中((用户用户)=>user.email==email&&user.password==password)。返回(用户=>user.As())。结果;

我最近也遇到了同样的问题。在我的本地机器上一切都很好,但当我尝试使用Azure时,它就像一只三条腿的狗一样运行。超时的事实表明JVM正在爆炸。最后我改变了两件事

  • 不要为Neo4j for Windows使用Azure VM仓库。这个版本已经过时了。如果我没记错的话,它是1.8版。相反,我在本文中遵循了安装过程。这很有帮助。我使用了一个A3虚拟机(4核,7G内存),它似乎适合我基地的1M节点

  • 我对JVM设置有很多问题。这是我真正的问题,我怀疑这是你的问题。有关您的情况,请参阅。您需要更新neo4j-community.vmoptions文件,该文件位于Java VM Tuning下的neo4j选项中。我不是Java人,但我添加的条目是 -Xmx -Xms -Xss -XX:+UseConMarkSweepGC 很明显,你需要把你的价值观放在这些事情上。对于我的虚拟机,我将4G用于-Xmx(即-Xmx4G)。注意,其他论坛线程中的许多人建议更新conf/neo4j-wrapper.conf文件以更新JVM设置。这是一种误导,因为需要更改的是neo4j-community.vmoptions文件


您能否提供有关设置的更多信息?您是否使用了Windows Azure虚拟机仓库?Neo4j的哪个版本?你的虚拟机配置是什么?您运行的是什么类型的查询?是的,我使用了VM Depot中可用的图像。Neo4j的版本是Neo4j-Community-2-0-1-on-Ubuntu-12-04-LTS。简单的登录查询也需要50秒。只需返回具有给定用户名和密码的用户节点。我是Kenny,请提供更多信息:您的数据模型是什么样子的?你有多少数据?你的配置看起来像什么?您是否为:Person(登录名)创建了索引?要进行
匹配(p:Person),其中p.login={login}和p.password={password}
我总是会收到一个错误“断开与Neo4j的连接”。访问neo4j浏览器时,请检查电源线是否已拔下。您的虚拟机的大小是多少?您分配了多少内存?我认为问题在于调整位于Neo4j安装目录的conf目录中的内存映射配置。