2 zhangpan soft zhangpan_soft 于 2018.02.13 10:08 提问

Linux中nexus启动不起来
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (mmap) failed to map 419430400 bytes for committing reserved memory.
    # Possible reasons:
    #   The system is out of physical RAM or swap space
    #   In 32 bit mode, the process size limit was hit
    # Possible solutions:
    #   Reduce memory load on the system
    #   Increase physical memory or swap space
    #   Check if swap backing store is full
    #   Use 64 bit Java on a 64 bit OS
    #   Decrease Java heap size (-Xmx/-Xms)
    #   Decrease number of Java threads
    #   Decrease Java thread stack sizes (-Xss)
    #   Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #
    #  Out of Memory Error (os_linux.cpp:2640), pid=9927, tid=0x00007fdb4a672700
    #
    # JRE version:  (8.0_151-b12) (build )
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode linux-amd64 compressed oops)
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

启动报这样的日志,在Windows下启动没事,nexus版本3.8

2个回答

rosehacker_715
rosehacker_715   2018.02.13 10:16
已采纳

确认jdk版本,是否跟操作系统匹配,确定操作系统的内存, 设置jvm内存

qq_35916194
qq_35916194   2018.02.13 10:50

linux下的nginx有启动方式,在nginx目录下有一个sbin目录,sbin目录下有一个nginx可执行程序。
执行 ./nginx
查看进程来判断nginx是否开启,命令ps -ef | grep nginx

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!