gpt4 book ai didi

javascript - Neo4j虚拟机在windows azure中性能不佳

转载 作者:搜寻专家 更新时间:2023-11-01 04:36:54 25 4
gpt4 key购买 nike

我在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 datas = client.Cypher.Match("(user:User)").Where((Users user) => user.email == email && user.password == password).Return(user => user.As<Users>()).Results;

最佳答案

我最近遇到了同样类型的问题。在我的本地计算机上一切都运行良好,但是当我尝试使用 Azure 时,它​​就像三足狗一样运行。事实上,您遇到超时表明 JVM 正在爆炸。最后我改变了两件事

  • 请勿将 Azure VM Depot 用于 Neo4j for Windows。该版本已经过时了。如果我没记错的话是1.8版本。相反,我按照这个link中的安装进行操作。 。这非常有帮助。我使用了 A3 VM(4 核,7G RAM),这似乎适合我的基地中的 1M 节点。

  • 我在 JVM 设置方面遇到了很多问题。这是我真正的问题,我怀疑也是你的问题。引用Neo4j documentation对于你的情况。您将需要更新 neo4j-community.vmoptions 文件,您可以在 Java VM Tuning 下的 Neo4j 选项中找到该文件。我不是 Java 人员,但我添加的条目是-Xmx-Xms-XSS-XX:+使用ConcMarkSweepGC显然,您需要根据这些设置输入您的值(value)观。对于我的 VM,我使用 4G 作为 -Xmx(即 -Xmx4G)。请注意,其他论坛帖子中的很多人建议更新conf/neo4j-wrapper.conf 文件以更新您的JVM 设置。这是具有误导性的,因为需要更改的是 neo4j-community.vmoptions 文件。

关于javascript - Neo4j虚拟机在windows azure中性能不佳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24647607/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com