Why does the JVM consume less memory than -Xms specified?

You’re looking at the resident memory – that is, the physical RAM consumed. See here for more info. The virtual memory, however, is the memory consumed by your application, including the memory swapped out (to disk). You’ll see there’s a closer correspondance with the virtual memory and your -Xms settings. why-does-the-jvm-consume-less-memory-than-xms-specified

Published
Categorized as java

生活

书画琴棋诗酒花 当年件件不离它 而今七字都变更 柴米油盐酱醋茶 《莲坡诗话》清·查为仁

Published
Categorized as poem

use-mvn-to-resolve-dependency-conflicts

maven 依赖处理 用于依赖冲突 公司本身对某个jar做了特殊处理.例如修改了spring的源码.需要特殊指定. 使用的项目 : Building an Application with Spring Boot 指定依赖版本 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <!– 排除依赖spring-core –> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> </exclusions> </dependency> <!– specify spring-core version –> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.1.0.RELEASE</version> </dependency>

个人觉得很好用的maven命令

maven 常用命令 创建一个简单的maven项目 mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-site \ -DgroupId=com.mycompany.app \ -DartifactId=my-app-site

Published
Categorized as tool

gcc 编译基础与make

gcc 编译基础 gcc common variable -l/path 是加入某个library,库的前缀lib和扩展名(.a或.so)不需要写 -I/path 后面接的路径就是设置要去搜索相关的include文件的目录. -Wall 编译的时候输出警告信息 -O 在编译的时候,依据操作系统环境,对程序进行优化 gcc default linux 默认是将函数库放置在/lib与/usr/lib当中.gcc默认会链接这两个路径下的函数库. 同理,gcc编译会默认会搜索/usr/include目录下的头文件. 通常称-Wall或者-O这些非必要的参数为标志FLAGS,当使用c语言的时候,也可能简称这些标志为CFLAGS

Published
Categorized as tool