【问题标题】:Nexus Start up really slowNexus 启动真的很慢
【发布时间】:2017-05-18 05:54:06
【问题描述】:

我们在 Odroid C1+ 上运行 Sonatype Nexus 3,大约相当于 RPi 2。是的,不推荐,但对于我们 2 的开发团队来说,性能是可以接受的。

启动除外。 Nexus 3 OSS 服务器需要一个小时或更长时间才能可用。

这正常吗? 任何想法为什么这么慢?

以下是一些启动时的日志条目。

2017-05-16 05:36:29,185+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - $ANSI{green:italic OrientDB 服务器处于活动状态} v2.2.13。 2017-05-16 05:36:29,189+0000 信息 [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - 已激活 2017-05-16 05:36:29,242+0000 信息 [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - 开始升级 2017-05-16 05:36:35,919+0000 警告 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 存储“配置”没有正确关闭。将尝试从预写日志中恢复 2017-05-16 05:36:35,931+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 寻找最后一个检查点... 2017-05-16 05:36:36,515+0000 信息 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 找到模糊检查点。 2017-05-16 05:36:36,530+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 数据恢复过程FUZZY 检查点已启动。 2017-05-16 05:36:36,562+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=6856901}} 将在数据恢复过程中被跳过 2017-05-16 05:36:36,570+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 1 个操作已处理, 当前的 LSN 是 OLogSequenceNumber{segment=0, position=6856901} 最后的 LSN 是 OLogSequenceNumber{segment=0, position=6856954} 2017-05-16 05:36:36,579+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 记录 OFuzzyCheckpointStartRecord{lsn =OLogSequenceNumber{segment=0, position=6856908}} com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointStartRecord{lsn=null, previousCheckpoint=OLogSequenceNumber{segment=0, position=6856861}} 将在数据恢复期间被跳过 2017-05-16 05:36:36,822+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=6856948}} 将在数据恢复过程中被跳过 2017-05-16 05:36:36,829+0000 信息 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} 存储数据恢复是完全的 2017-05-16 05:42:54,800+0000 信息 [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - 启动 SCHEMAS 2017-05-16 05:42:55,883+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 存储“分析”没有正确关闭。将尝试从预写日志中恢复 2017-05-16 05:42:55,894+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 寻找最后一个检查点... 2017-05-16 05:42:55,904+0000 信息 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 找到模糊检查点。 2017-05-16 05:42:55,913+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 数据恢复过程来自FUZZY 检查点已启动。 2017-05-16 05:42:55,921+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=2246069}} 将在数据恢复过程中被跳过 2017-05-16 05:42:55,929+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 1 个操作已处理, 当前的 LSN 是 OLogSequenceNumber{segment=0, position=2246069} 最后的 LSN 是 OLogSequenceNumber{segment=0, position=2246122} 2017-05-16 05:42:55,938+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 记录 OFuzzyCheckpointStartRecord{lsn =OLogSequenceNumber{segment=0, position=2246076}} com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointStartRecord{lsn=null, previousCheckpoint=OLogSequenceNumber{segment=0, position=2246029}} 将在数据恢复期间被跳过 2017-05-16 05:42:55,946+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=2246116}} 将在数据恢复过程中被跳过 2017-05-16 05:42:55,952+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=analytics}} 存储数据恢复是完全的 2017-05-16 05:49:05,078+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 存储“审计”没有正确关闭。将尝试从预写日志中恢复 2017-05-16 05:49:05,089+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 寻找最后一个检查点... 2017-05-16 05:49:05,097+0000 信息 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 发现模糊检查点。 2017-05-16 05:49:05,105+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 数据恢复过程FUZZY 检查点已启动。 2017-05-16 05:49:05,113+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=2268394}} 将在数据恢复过程中被跳过 2017-05-16 05:49:05,121+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 1 个操作已处理, 当前的 LSN 是 OLogSequenceNumber{segment=0, position=2268394} 最后的 LSN 是 OLogSequenceNumber{segment=0, position=2268447} 2017-05-16 05:49:05,129+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 记录 OFuzzyCheckpointStartRecord{lsn =OLogSequenceNumber{segment=0, position=2268401}} com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointStartRecord{lsn=null, previousCheckpoint=OLogSequenceNumber{segment=0, position=2268354}} 将在数据恢复期间被跳过 2017-05-16 05:49:05,138+0000 WARN [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 记录 com.orientechnologies .orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=OLogSequenceNumber{segment=0, position=2268441}} 将在数据恢复过程中被跳过 2017-05-16 05:49:05,144+0000 信息 [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=audit}} 存储数据恢复是完成

【问题讨论】:

  • 嵌入的orientdb好像坏了,自动恢复了。也许你在关机时做错了什么?

标签: nexus sonatype


【解决方案1】:

一些注意事项:

  • 这太酷了!不久前,我们内部团队中的某个人在 Raspberry Pi 3 上开发了它,所以我们喜欢看到这样的东西
  • 我们不支持此配置,因此我们提供的任何帮助都只是“哇,这太酷了”的级别

我们的内部人员说,他注意到 NXRM 3 在 Raspberry Pi 3 启动期间更新架构时内存不足,他还没有找到解决方法。

他找到了解决方法。他的胡子也很大。他编辑了 nexus.vmoptions 以具有以下内容:

-Xms256M -Xmx256M -XX:MaxDirectMemorySize=512M

Orient 使用系统内存,这与使用 Java 堆的 Nexus Repo 不同,如果这对您有帮助的话。上面关于 Orient 和 shutdown 的注释也可能非常相关。

以下是我们汇总的有关东方和内存以及调优的一些信息:

Optimizing OrientDB Database Memory

这里还有一篇关于 Nexus Repository Manager 3 系统要求的更通用的文章:

Nexus Repository Manager 3 System Requirements

我对你的团队的建议完全不同,可以使用我们的 Docker 镜像并在你必须使用的任何硬件上旋转 Nexus Repo。

Docker Nexus3

祝你好运!

【讨论】:

  • 感谢您的全面回答。我没有提到我们使用了 Docker 安装。另外,是的,服务器可能因关机或 linux “重启”而被残酷终止
  • 按照建议对 vmoptions 进行了更改,然后尝试关闭并重新启动 Docker 容器。 Nexus仍然需要很长时间才能启动。我应该如何优雅地关闭 Nexus 3/OrientDB?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-12-25
  • 2013-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-21
相关资源
最近更新 更多