暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

宝蓝德BES参数配置修改

IT那活儿 2022-05-11
6541

点击上方“IT那活儿”,关注后了解更多内容,不管IT什么活儿,干就完了!!!

BES应用服务器是一款JavaEE应用服务器,支持最新的JavaEE规范标准,应用服务器实例为管理控制台提供运行时支持,对管理员进行验证,处理来自管理控制台和 iastool 工具的请求,在不同的生产环境要求下我们往往需要对BES各实例的一些参数配置进行修改来适应不同的生产环境。
下面给大家罗列几种修改实例各参数配置修改的方法。

使用BES中间件自带的iastool工具,在应用账号下进行修改
1. 使用 iastool 工具启动应用服务器实例,请在 BES_HOME/bin 目录下运行以下命令
iastool 的默认密码是 B#2008_2108#es。
iastool --user admin --password B#2008_2108#es start --server
2. 在实例启动的情况,获取实例所有的参数配置信息
./iastool --user admin --passwordfile passwd_file --port 9999  get "*"
3. 获取实例JDBC数据源的配置信息
./iastool --user admin --passwordfile passwd_file --port 9999  get "*" |grep -i "JDBC"
具体参数代表意义如下:
--user 参数对应的admin为控制台用户名
--passwordfile 参数对应的passwd_file为加密文件
--port  参数对应的9999为控制台端口
1)修改JDBC数据源最大值,修改前最大值为8,修改后为9。
./iastool --user admin --passwordfile passwd_file --port 9999  set  key=value
例:
./iastool --user admin --passwordfile passwd_file --port 9999 set server.resources.jdbc-resource.TESTDB3.max-pool-size=9
再次查看是否修改成功,如图所示,最大值已修改为9。
./iastool --user admin --passwordfile passwd_file --port 9999  get "*"  |grep -i "TESTDB3.max-pool-size"
2)修改JDBC数据源的初始化连接值,修改前初始化连接值为5。
./iastool --user admin --passwordfile passwd_file --port 9999 set server.resources.jdbc-resource.TESTDB3.initial-pool-size=6
再次查看初始化连接值成功修改为6。
3)修改线程池的最大值。
查看原线程池的值:
./iastool --user admin --passwordfile passwd_file --port 9999  get "*"  |grep -i "thread-pool.max"
原线程最大值为128,现将其修改成130。
./iastool --user admin --passwordfile passwd_file --port 9999 set server.thread-pools.thread-pool.http-thread-pool.max-threads=130
4)修改其他参数配置。
在有想要修改的参数配置时,可以使用。
./iastool --user admin --passwordfile admin_passwordfile --port 1900 set KEY=VALUE
只需要获取我们想要修改的参数的键值就可。

 

END

  



本文作者:程 红

本文来源:IT那活儿(上海新炬王翦团队)

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论