zoukankan      html  css  js  c++  java
  • fisheye Error occurred during initialization of VM Could not reserve enough space for object heap 问题解决!

    参考文章:https://answers.atlassian.com/questions/9397/not-enough-heap-space-to-run-fisheye

     fisheye下载好了之后,解压后怎么运行run.bat都报错误,错误提示如下:


    D:developsoftfisheye-3.1.5fecru-3.1.5>bin un.bat --debug
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    请按任意键继续. . .

    网上搜索了很久,最后试了很多,终于找到解决方法了!哈哈!

    在 控制面板系统和安全系统--->高级系统设置----》系统属性-----》高级----》环境变量-----》系统变量----》新建

    变量名:FISHEYE_OPTS

    变量值:-Xms128m -Xmx512m -XX:MaxPermSize=256m

    再点击确定--》确定 

    即可。

    原因分析:我的电脑4g内存,win7(32位),jdk 1.7(32位),因为是32位的系统,所以原则上4G内存只能读2G左右,但是fisheye默认值为

    RAM

    1GB minimum, 2GB will provide performance "headroom". Your Java heap should be sized at 512MB with theFISHEYE_OPTS environment variable, adjustable up to 1024MB depending on performance.

    它是建议最好1G以上,2G为推荐值,但是jdk默认值最好关于fisheye的预留值要512M以上,如果你的内存没有那么大,那么手动把MaxPermSize调小即可。

    重新双击run.bat,然后在浏览器中输入localhost:8060即可打开fisheye,fisheye的默认端口为8060

  • 相关阅读:
    支付
    REST framework补充
    Django与Ajax
    Django 模型层ORM
    Django简介
    Web应用
    Docker配置pycharm连接
    Docker 网络扩展
    Docker 之Docker-Compose
    Docker 之Dockerfile
  • 原文地址:https://www.cnblogs.com/amosli/p/3427841.html
Copyright © 2011-2022 走看看