Javascript windows azure中Neo4j虚拟机的性能不佳
我已经在windows azure中创建了Neo4j虚拟机。如何提高它的性能?现在简单查询也需要30-50秒的时间。如何改进?任何人都可以提供帮助吗 下面给出了我的示例数据模型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
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文件
匹配(p:Person),其中p.login={login}和p.password={password}
我总是会收到一个错误“断开与Neo4j的连接”。访问neo4j浏览器时,请检查电源线是否已拔下。您的虚拟机的大小是多少?您分配了多少内存?我认为问题在于调整位于Neo4j安装目录的conf目录中的内存映射配置。