jar启动脚本

nohup java -noverify -server -Xmx1024M -Xms1024M -Xmn512M  -XX:SurvivorRatio=2 -Xss256k  -XX:+ExplicitGCInvokesConcurrent -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSClassUnloadingEnabled -XX:LargePageSizeInBytes=128M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=70 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:logs/gc.log  -XX:+HeapDumpOnOutOfMemoryError  -Dcom.sun.management.jmxremote  -Dcom.sun.management.jmxremote.port=26696 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.103.25  -jar *.jar --spring.profiles.active=prod >logs/server.log 2>&1 & tail -f logs/server.log

时隔十几年又买回来dell latitude

进来新添笔记本计划,我思考了我的用本需求,高cpu,高内存,固态,用于软件开发。考虑来考虑去,还是dell商务本性价比最高。

最终买了dell latitude 5501, i7 9850h,32g内存,1t固态。原来考虑thinkpadp50,扩展性最好,但是考虑到32g内存的升级费用,还是算了吧。苹果本并不十分感冒,听说挺好,但是考虑到配置,特别是内存配置,还是不划算。最终才选择了这款,买就买吧,希望不要让我失望。

resttemplate.exchange远程调用

String url = "http://"+ dataPickerIpAndPort+"/myHouse/getMyHouse?userName="+userName+"&idCard="+idCard+"&buyer="+buyer+"&contractNum="+contractNum; 
try {
System.out.println("findCompanies's url:"+url);
body = restTemplate.exchange(
url
, HttpMethod.POST
, null
, new ParameterizedTypeReference<AnswerDTONew<MyHouseDTO>>() {
}).getBody();
if(body==null){
return new AnswerDTONew(true,"not found",new MyHouseDTO(), CommonState.ERROR);
}
}catch (Exception e){
return new AnswerDTONew(true,e.getMessage(),"", CommonState.ERROR);
}
@RequestMapping(value = "/myHouse/getMyHouse")
AnswerDTONew<MyHouseDTO> getMyHouse(@RequestParam(name = "idCard") String idCard,
@RequestParam(name = "buyer") String buyer,
@RequestParam(name = "contractNum") String contractNum);