`

JVM option

    博客分类:
  • java
jvm 
阅读更多

@echo off

set jvm_opts=-Xms256m -Xmx768m
set jvm_opts=%jvm_opts% -Dprogram.inst.usf.name=cn
rem set jvm_opts=%jvm_opts% -Dcom.sun.management.jmxremote=
rem set jvm_opts=%jvm_opts% -Dcom.sun.management.jmxremote.port=20061
rem set jvm_opts=%jvm_opts% -Dcom.sun.management.jmxremote.authenticate=false
rem set jvm_opts=%jvm_opts% -Dcom.sun.management.jmxremote.ssl=false

for /f "delims= " %%a in ('date /t') do (set date_string=%%a)
set date_time_string=%date_string%-%TIME%
set date_time_string=%date_time_string::=-%
set date_time_string=%date_time_string: =-%
set date_time_string=%date_time_string:/=-%
set date_time_string=%date_time_string:\=-%
set date_time_string=%date_time_string:<=-%
set date_time_string=%date_time_string:?=-%
set date_time_string=%date_time_string:"=-%
set date_time_string=%date_time_string:>=-%
set date_time_string=%date_time_string:|=-%

set jvm_opts=%jvm_opts% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%program_inst_log_dir%dump-%nodename%-%date_time_string%.hprof
set jvm_opts=%jvm_opts% -XX:PermSize=32m
set jvm_opts=%jvm_opts% -XX:MaxPermSize=128m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:CMSFullGCsBeforeCompaction=5 -XX:+UseCMSCompactAtFullCollection -XX:-CMSParallelRemarkEnabled -XX:-UseBiasedLocking

set GC_LOG=%program_inst_log_dir%gc-%nodename%-%date_time_string%.log
set jvm_opts=%jvm_opts% -verbose:gc
set jvm_opts=%jvm_opts% -XX:+PrintGCDetails
set jvm_opts=%jvm_opts% -Xloggc:%GC_LOG%

rem set /p port=Please input the debug port number:
rem set port=8798
rem set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=y

分享到:
评论

相关推荐

    gradle-jvmsrc-plugin:一个 gradle 插件,它提供了为 JVM 项目创建默认源、测试和资源包目录的任务

    一个 gradle 插件,它提供了为 JVM 项目(java、groovy、scala、android 等)创建默认源、测试和资源包目录的任务。 该插件会检查应用于您的项目的现有语言插件,并创建适当的目录和包结构,并可选择将 .gitkeep ...

    java 6 jvm 参数选项大全

    Java 6 JVM 参数选项大全(中文版) 作者:KenWu Email:ken.wug@gmail.com 转载本文档请注明原文链接 http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm! 本文是基于最新的SUN官方文档...

    JVM 参数设置详解

    This document is a compilation of all the JVM options for various versions of the JVM on primarily SPARC/Solaris Platform. The descriptions for each option are taken mostly verbatim from the reference...

    rich-cli:集成用于JVM语言的CLI工具(Java,Kotlin等)

    建造$ ./mvnw clean verify$ ./run demo -d arg1 arg2 # Try out option parsing$ ./run example # Example from picocli-shell-jline3目录整合方式JVM语言支持该代码是用Kotlin编写的,但是该库可与任何JVM语言一起...

    AndroidStudio 使用过程中出现的异常(Gradle sync failed)处理办法

    AndroidStudio使用过程中出现的异常 异常信息: ... For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2

    Android Studio error: Unable to start the daemon process的解决方法

    在 Android Studio 上新建项目,出现 Unable to start the daemon process....For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https:

    IdeaGo启动报错Failed to create JVM的问题解析

    【内容】: 问题情况 出现之前做了什么  出错之前通过这个功能增加了个错误的vm参数:-agent:xxx.jar 怎么办? ...然而,我这并没有这个文件。百思不得其解,重装等各种方式都试过还是不能用。...

    Android Studio 3.6 下 “Unable to start the daemon process ”问题解决

    自从升级了android 3.6之后,天天都不省心,不是插件搜索不到了,就是build.gradle...For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org

    使用java自带工具监控jvm运行状态

    1.jps:查看当前运行着的java进程(仿linux下的ps),显示进程号 ... jinfo &lt;option&gt; (to connect to a running process) where &lt;option&gt; is one of: -flag  to print the value of the named VM flag -flag

    jadx-gui-1.0.0dev最新版本,支持中文,2019年8月31日编译

    JADX最新版本,支持中文,2019年8月31日编译,JVM内存已经修改为8G,运行请点击bin目录下的...set DEFAULT_JVM_OPTS="-Xms128M" "-Xmx8g" "-Dawt.useSystemAAFontSettings=lcd" "-Dswing.aatext=true" "-XX:+UseG1GC

    从 Clojure测量对象内存消耗_Clojure_代码_相关文件_下载

    JDK9+:必须使用 option 启动 JVM -Djdk.attach.allowAttachSelf,否则代理将无法动态附加到正在运行的进程。对于 Leiningen,添加:jvm-opts ["-Djdk.attach.allowAttachSelf"]到 project.clj. 对于 Boot,使用环境...

    jad 最新版java反编译

    Usage: jad [option(s)] (s)&gt; Options: -a - generate JVM instructions as comments (annotate) -af - output fully qualified names when annotating -b - generate redundant braces (braces) -clear - clear ...

    jvm-top:原代码 http

    顶级原代码此代码仅作学习使用jvmtop-帮助 jvmtop - java monitoring for the command-lineUsage: jvmtop.sh [options...] [PID]Option Description------ ------------?, -h, --help shows this help-d, --delay ...

    scala-bytecode:用Scala编写的JVM字节码理解框架

    关于访问这些结构,即使未定义, resolve也会始终返回有效的Info对象,而lookup将返回Option[Info]指示是否已实际定义它。 val cxt = new Cxt cxt.lookup( " fruit/Banana " ) // =&gt; None cxt.resolve( " fruit/...

    java反编译工具jad

     -a - 用JVM字节格式来注解输出  -af - 同 -a,但是注解的时候用全名称  -clear - 清除所有的前缀  -b - 输出多于的括号 (e.g., if(a) { b(); }, default: no)  -d  - 指定输出文件的文件目录  -...

    反编译工具jad 反编译工具jad简单用法

    -a - 用JVM字节格式来注解输出 -af - 同 -a,但是注解的时候用全名称 -clear - 清除所有的前缀 -b - 输出多于的括号 (e.g., if(a) { b(); }, default: no) -d &lt;dir&gt; - 指定输出文件的文件目录 -dead -试图反...

    Ja-netfiter-2022.2.0 主要更新对 jdk 17的兼容

    jdk 17需要 新增 配置 如下 jvm参数 --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED

    JAD反编译工具+FrontEnd

    -a - 用JVM字节格式来注解输出 -af - 同 -a,但是注解的时候用全名称 -clear - 清除所有的前缀 -b - 输出多于的括号 (e.g., if(a) { b(); }, default: no) -d &lt;dir&gt; - 指定输出文件的文件目录 -dead -试图反编译代码...

    java反编译工具jad 1.5.8g(可以反编译jdk1.5,1.6)

    -a - 用JVM字节格式来注解输出 -af - 同 -a,但是注解的时候用全名称 -clear - 清除所有的前缀 -b - 输出多于的括号 (e.g., if(a) { b(); }, default: no) -d &lt;dir&gt; - 指定输出文件的文件目录 -dead -试图反编译代码...

    vs-shell-format:shellscript,Dockerfile,properties ......格式扩展

    Shift + Option + F shift + Command + p然后键入Format Document 依存关系 shfmt 定制配置 shellformat.path全路径示例[mac,linux]: /usr/local/bin/shfmt [windows]: C:\\bin\\shfmt.exe shellformat.flag ...

Global site tag (gtag.js) - Google Analytics