`
文章列表

一次jvm调优分析

    博客分类:
  • jvm
准备在uat环境部署web项目,部署完发现,cpu一直过高,项目访问不了 具体报错:java.lang.OutOfMemoryError: PermGen space 明显一看是方法区满了,但是没有jvm调优经验 经别人指导,看了下服务器的内存,是8G,而该项目jvm配置为  -Xms512m -Xmx3072m -Xss2048K -XX:PermSize=64m -XX:MaxPermSize=64m -XX:-UseGCOverheadLimit 堆内存和方法去内存都很小 这台服务器上布置了四个应用 其他三个配置为 socket项目: -Xms2048m -Xmx409 ...
目前现状,jedis版本是2.4.2,没有引入common包 报错: 信息: Illegal access: this web application instance has been stopped already. Could not load redis.clients.jedis.exceptions.JedisDataException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to termin ...

平铺水印

逻辑:利用canas画图,参数为员工编号+姓名+本地图片,将传过来的图,画上水印 效果图为附件图 /** * 设置水印的样式 * @param employeeIdimg 身份证照片 * @param employeeNumber 员工编号 * @param employeeName 员工姓名 * @param basUrl http://local.cbs.bacic5i5j.com:8080/base/ * @return {string} */ function watermark(employeeIdimg,employeeNumber,empl ...
最近在用select的时候,需要隐藏下拉框,而且是多选 <select id="selectSendMsgType" name="selectSendMsgType" multiple="multiple" class="chosen-select-comp" > </select> bootstrap中select 代码生成如下 <select id="selectSendMsgType" name="selectS ...
最近再使用fastdfs上传时,需要用到连接池,用的是common pool 1.6,对于config里面的配置不是很了解,现在做个笔记记录一下: maxActive:控制池中对象的最大数量,默认值为8,如果为负数表示没有限制 maxIdle:控制池中空闲的对 ...
一、数据库死锁的现象 程序在执行的过程中,点击确定或保存按钮,程序没有响应,也没有出现报错。 二、死锁的原理 当对于数据库某个表的某一列做更新或删除等操作,执行完毕后该条语句不提 交,另一条对于这一列数 ...
java.net.SocketTimeoutException:connect timed out   做图片上传时,总是报这个错误,一开始以为自己程序问题,没有设置好连接时间,最近网上搜一下,才发现是storage server的端口没有全部开放,因为上传的时候不是都报这个异常,有成功的,成功率并不高,这样我才开始怀疑这些端口的开放,查看四个storage server服务器,发现确实两台的端口没有开放,放开后,图片上传成功率就恢复正常了! 另外fastdf storage配置地址为/etc/fdfs  配置防火墙地址命令: 端口查看及开启方式: 在centOS服务器或putty ...
查询已经存在的连接数 select count(*) from v$process; 查询允许的最大连接数 查询数据库允许的最大连接数: select value from v$parameter where name = 'processes';  
# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=yourname //在这修改hostname NISDOMAIN=eng-cn.platform.com 2.修改/etc/hosts里面的名字 # vi /etc/hosts 127.0.0.1 localhost.localdomain localhost 172.17.33.169 yourname //在这修改hostname 3.最后在终端下执行: #hostname ***** //*****为修改的hostname 其中第一种和第二种为根本解决办法,第三种为临时方法,重启后 ...
RabbitMQ 3.4.1, Erlang 20.0-rc2 使用guest登录一直提示登录失败 使用管理后台修改密码也是提示登陆失败,查询网上资料发现 处于安全的考虑,guest这个默认的用户只能通过localhost来登录,其他的IP无法直接使用这个账号。 为了解决这个问题,需要在rabbitmq的配置文件中将loopback_users配置设置为空,如编写配置文件:/etc/rabbitmq/rabbitmq.config,并在其中添加以下内容: [{rabbit, [{loopback_users, []}]}]. 保存后重启rabbitmq-server即可随意 ...
1、安装erlang 以root身份执行下面命令 yum install erlang yum install erlang xmlto 2、安装epel源 rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo 测试是否安装成功; erl ...
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Note:0 ≤ x, y < 231. Example: Input: x = 1, y = 4 Output: 2 Explanation: 1 (0 0 0 1) 4 (0 1 0 0) ...
mysql版本:mysql-5.7.17-winx64 这个版本解压之后没有data目录 步骤如下: 1,配置环境变量 我的电脑->属性->高级->环境变量 D:\soft\mysql-5.7.17-winx64\bin 将这句话追加到path目录后 2,修改my-default.ini,或者自己建立一个my.ini文件 添加如下四句: basedir=D:\soft\mysql-5.7.17-winx64 datadir=D:\soft\mysql-5.7.17-winx64\data port = 3306   character_set_ser ...
237. Delete Node in a Linked List Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, the linked list should become 1 -> 2 -> 4after c ...

1. Two Sum

1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example:   Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1]. jav ...
Global site tag (gtag.js) - Google Analytics