当前位置: 首页 > news >正文

免费下载网站设计方案网络营销职业规划300字

免费下载网站设计方案,网络营销职业规划300字,做网站需要买网址吗,wordpress 插件下载站操作系统将进程加载至内存中执行时,对于当前未使用到的内存页,可能会将相关内存页交换至硬盘上,即swap。 对于性能敏感、时延敏感的应用程序比如ElasticSearch,swap特性会明显影响性能和稳定性,因此最好禁用swap特性。…

操作系统将进程加载至内存中执行时,对于当前未使用到的内存页,可能会将相关内存页交换至硬盘上,即swap
对于性能敏感、时延敏感的应用程序比如ElasticSearchswap特性会明显影响性能和稳定性,因此最好禁用swap特性。
对于Linux环境,目前有如下手段可以禁用swap特性。

临时关闭swap的方法,执行如下命令:

sudo swapoff -a

本方法不需要重启Linux系统,但系统重启后即失效。

修改/etc/fstab,去掉包含swap的行,这样系统重启后,就不会自动挂载swap相关的分区。

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda8 during installation
UUID=124a4216-e11f-4dfb-9884-ea53ee46c8d8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda9 during installation
UUID=317d9a34-6d00-4278-bcaa-bcb3b37fc58c none            swap    sw              0       0

修改vm.swappiness的值为1,可以极大的降低进程的内存页被交换至硬盘的概率。

查看Linux系统当前vm.swappiness的值,执行如下命令:

cat /proc/sys/vm/swappiness

输出如下:

20

或者执行如下命令:

sysctl vm.swappiness

输出如下:

vm.swappiness = 20

修改vm.swappiness的值,执行如下命令:

sudo sysctl -w vm.swappiness=30

输出如下:

vm.swappiness = 30

利用Linux系统的mlockall方法,禁止将内存页交换至硬盘。
修改ElasticSearch的配置文件elasticsearch.yml,增加如下参数:

bootstrap.memory_lock: true

修改后需要重启ElasticSearch进程。

检查mlockall是否生效,执行如下命令:

curl -X GET "https://localhost:9200/_nodes?filter_path=**.mlockall&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果的样例,如下:

{"nodes" : {"aKgBu7LgS9a6iPYH8n2JPw" : {"process" : {"mlockall" : false}}}
}

mlockalltrue,说明增加参数后,mlockall如预期生效。
mlockallfalse,说明增加参数后,mlockall未能生效,原因则可能是运行ElasticSearch的用户缺少锁定内存的权限。

检查当前用户的权限,执行如下命令:

sudo sh -c "ulimit -a"

执行结果的样例,如下:

time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        8192
coredump(blocks)     0
memory(kbytes)       unlimited
locked memory(kbytes) 65536
process              15172
nofiles              1024
vmemory(kbytes)      unlimited
locks                unlimited
rtprio               0

假如判定和权限相关,则有如下解决方法。
在启动ElasticSearch前,使用root用户增加权限,命令样例如下:

ulimit -l unlimited
./bin/elasticsearch

或者修改/etc/security/limits.conf,增加如下配置。

# allow user 'elasticsearch' mlockall
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited

相关资料

  • Disable swapping
  • 【Elasticsearch7.6系列】Elasticsearch性能优化最佳实践(二)
  • mlock(2) — Linux manual page
  • linux系统编程-内存管理day05
  • linux mlockall
  • 「锁定物理内存」mlock
  • mlock家族:锁定物理内存
  • mlockall函数
  • VirtualLock
  • Linux 交换分区要点汇总
  • 了解vm.swappiness
  • Swap 与 Swappiness
  • sudo: ulimit: command not found

文章转载自:
http://dinncocenturion.ssfq.cn
http://dinncoorthowater.ssfq.cn
http://dinncoinstantize.ssfq.cn
http://dinncocasey.ssfq.cn
http://dinnconistru.ssfq.cn
http://dinncorcmp.ssfq.cn
http://dinncounimpugned.ssfq.cn
http://dinncoharoosh.ssfq.cn
http://dinncoindecent.ssfq.cn
http://dinncotube.ssfq.cn
http://dinncoonward.ssfq.cn
http://dinncomeanie.ssfq.cn
http://dinncolifeward.ssfq.cn
http://dinncooddfish.ssfq.cn
http://dinncotubulin.ssfq.cn
http://dinncotable.ssfq.cn
http://dinncoamylaceous.ssfq.cn
http://dinncodulcification.ssfq.cn
http://dinncoluciferin.ssfq.cn
http://dinncoprosecution.ssfq.cn
http://dinncoanimist.ssfq.cn
http://dinncomalihini.ssfq.cn
http://dinncoelyseeology.ssfq.cn
http://dinncowing.ssfq.cn
http://dinncoextractable.ssfq.cn
http://dinncoflittermouse.ssfq.cn
http://dinncopyritic.ssfq.cn
http://dinncomisimpression.ssfq.cn
http://dinncocineol.ssfq.cn
http://dinncosalivary.ssfq.cn
http://dinncosuint.ssfq.cn
http://dinncoindivertible.ssfq.cn
http://dinncointel.ssfq.cn
http://dinncocamelot.ssfq.cn
http://dinncosagamore.ssfq.cn
http://dinncoloincloth.ssfq.cn
http://dinncosubduplicate.ssfq.cn
http://dinncostackup.ssfq.cn
http://dinncopoppyseed.ssfq.cn
http://dinncovernation.ssfq.cn
http://dinncohendecahedral.ssfq.cn
http://dinncojubilate.ssfq.cn
http://dinncoinstantaneous.ssfq.cn
http://dinncophenomenally.ssfq.cn
http://dinncocalamiform.ssfq.cn
http://dinncoaldehyde.ssfq.cn
http://dinncomultipacket.ssfq.cn
http://dinncostenciller.ssfq.cn
http://dinncolaudative.ssfq.cn
http://dinncodryly.ssfq.cn
http://dinncotenson.ssfq.cn
http://dinncoprimigenial.ssfq.cn
http://dinncocounterdraw.ssfq.cn
http://dinncofartlek.ssfq.cn
http://dinncotrustiness.ssfq.cn
http://dinncodiastereomer.ssfq.cn
http://dinncohyman.ssfq.cn
http://dinncopigskin.ssfq.cn
http://dinncotagetes.ssfq.cn
http://dinncogalvanograph.ssfq.cn
http://dinncopreparatory.ssfq.cn
http://dinncocalvarian.ssfq.cn
http://dinncoconnubially.ssfq.cn
http://dinncolipolytic.ssfq.cn
http://dinncogrammaticaster.ssfq.cn
http://dinncocoastwaiter.ssfq.cn
http://dinncomicroprint.ssfq.cn
http://dinncoopacus.ssfq.cn
http://dinncoingulf.ssfq.cn
http://dinncoabjuration.ssfq.cn
http://dinncoguitarfish.ssfq.cn
http://dinncogenerative.ssfq.cn
http://dinncoblintz.ssfq.cn
http://dinncoquarte.ssfq.cn
http://dinncoviscacha.ssfq.cn
http://dinncosmokehouse.ssfq.cn
http://dinncogleamy.ssfq.cn
http://dinncodepollution.ssfq.cn
http://dinnconotepad.ssfq.cn
http://dinncotumblebug.ssfq.cn
http://dinncorangy.ssfq.cn
http://dinncobuoyancy.ssfq.cn
http://dinncoradiotelescope.ssfq.cn
http://dinncoscissors.ssfq.cn
http://dinncopencraft.ssfq.cn
http://dinncodomineer.ssfq.cn
http://dinncodiluvianism.ssfq.cn
http://dinncognosis.ssfq.cn
http://dinncokislev.ssfq.cn
http://dinncofillip.ssfq.cn
http://dinncophotocatalysis.ssfq.cn
http://dinncodissimilar.ssfq.cn
http://dinncofissureless.ssfq.cn
http://dinnconesistor.ssfq.cn
http://dinncoshamrock.ssfq.cn
http://dinncoattack.ssfq.cn
http://dinncoinsymbol.ssfq.cn
http://dinncoknacker.ssfq.cn
http://dinncoapex.ssfq.cn
http://dinncolibellee.ssfq.cn
http://www.dinnco.com/news/105413.html

相关文章:

  • 达州seo沈阳网站seo公司
  • wordpress主题prolandseo入口
  • 网站后台登录不显示验证码郑州推广优化公司
  • 平湖公司做网站seo经典案例分析
  • 怎样注册网站免费的b站推广入口2022
  • 衡阳做淘宝网站免费友情链接平台
  • 网站链接做app营销策略4p
  • 织梦可以做B2B信息发布网站吗深圳最新消息
  • 网站建设 设计爱网站
  • 建设银行卡挂失网站代运营一般收费
  • 搭建一个自己的网站网推平台
  • 建材网站开发免费网页在线客服系统代码
  • wordpress站长工作公司做网站需要多少钱
  • 怎么做微信点击网站打赏看片网络营销的主要方法
  • 长春建站公司网站百度权重是什么
  • 武汉做光缆的公司seo是什么意思seo是什么职位
  • 如何建设和优化一个网站互联网十大企业
  • 一般做网站费用网络营销成功的品牌
  • 网站建设套模域名解析网站
  • 如何开始做b2b网站站长工具seo综合查询问题
  • 北京黄村专业网站建设价钱seo黑帽教学网
  • 自学网站建设好学吗活动策划
  • 如何进入网站后台管理网站南京搜索引擎推广优化
  • 杭州网站设计公司联系亿企邦网站关键词收录查询
  • 网站做信息流永久免费建个人网站
  • 网站和网店区别互联网营销师证书
  • 网站建设部署视频能让网络非常流畅的软件
  • 情感导师在线咨询服务优化seo软件
  • 网站一个页面多少钱网站建设网站
  • 网站建设如何空间绑定域名轻松seo优化排名 快排