6/21/2024

Ubuntu คำสั่ง Scan ดูขนาดพื้นที่แต่ละ Folder ด้วยโปรแกรม ncdu

 Ubuntu คำสั่ง Scan ดูขนาดพื้นที่แต่ละ Folder ด้วยโปรแกรม ncdu
ติดตั้งโปรแกรม

  1. apt install ncdu


เข้าไปใน Folder ที่ต้องการ Scan ดูข้อมูล เช่น datacenter
  1. cd /DATA


Run Program
  1. ncdu .
ใช้ลูกศรเลื่อนเข้าออก ขึ้นลง เพื่อดูข้อมูล

5/28/2024

ตั้งค่า Firefox ไม่ให้ redirect http to https

ตั้งค่า Firefox ไม่ให้ redirect http to https
1. เข้าแก้ Config firefox ด้วยคำสั่ง [b]about:config[/b]
2. ค้นหา [b]network.stricttransportsecurity.preloadlist[/b] เปลี่ยนจาก true เป็น false


3. ปิด Firefox แล้วเข้าใหม่ ทดลองเข้า Url ที่เป็น http ก็จะไม่ redirect


https://stackoverflow.com/questions/30532471/firefox-redirects-to-https


5/11/2024

Thunderbird ไม่โหลดเมล์อัตโนมัติ ต้องกด Get Message เอง

 Thunderbird ไม่โหลดเมล์อัตโนมัติ ต้องกด Get Message เอง
วิธีแก้
https://support.mozilla.org/en-US/questions/1303932

โดยเปลี่ยน security.tls.version.min  จาก 2 หรือ 3 ให้เป็น 1

1. In Menu Tools --> Settings
2. Scroll forever to the bottom and click on 'Config Editor'
3. accept the risk
4. In search type: tls.version
5. look for this line : security.tls.version.min
6. Double click on line to open an edit window and enter the number 1
7. click on OK.
8. Exit window - top right x


3/06/2024

Alfresco มีปัญหา Load CPU เยอะค้นหาไม่ได้ Error

Alfresco มีปัญหา Run CPU เยอะค้นหาไม่ได้ Error
แก้ปัญหาโดย
ใช้วิธีตั้ง Crontab ให้ Restart service ตอน 8.40 น. แต่บางวันก็ต้อง Restart Manual อีกรอบ เป็นทุกวันตอนเช้า หลังจาก Restart ไป ก็ใช้งานได้ทั้งวันและจะเป็นอีกทีในตอนเช้าของวันต่อไป
Error ค้นหาไฟล์ไม่พบ

search failed due to system error: 0822154976 request failed 500 /solr/alfresco/alfresco?wt=json&fl=dbid%2cscore&rows=500&df=text&start=0&locale=en_us&fq=%7b%21afts%7dauthority_filter_from_json&fq=%7b%21afts%7dtenant_filter_from_json

ส่งผลให้ กิน CPU ที่ตัว Server Alfresco และตัว VMware

มี Process JAVA run CPU สูงผิดปกติ

Process บางตัว Run เป็นเวลานาน กว่า Process อื่น ๆ
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 3703 52.5 18.7 2161208 1533760 ? Sl Mar05 372:14 /DATA/alfresco/java/bin/java -Djava.util.logging.config.file=/DATA/alfresco/tomcat/conf/logging.properties -XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -D

เมื่อ Restart service Alfresco process นี้จะเริ่ม Run ใหม่
ทดลองวันที่ 20240306
แก้ปัญหาโดย
แก้ไฟล์ ctl.sh เพิ่ม MaxPermSize , Xms, Xmx
nano /DATA/alfresco/tomcat/scripts/ctl.sh
เดิม
#export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/DATA/alfresco -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"
แก้ใหม่
export JAVA_OPTS="-XX:MaxPermSize=1024m -Xms512m -Xmx2048m -XX:-DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/DATA/alfresco -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"
และ
เดิม
#export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx1024m -XX:-DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/DATA/alfresco -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"
แก้ใหม่
export JAVA_OPTS="-XX:MaxPermSize=1024m -Xms512m -Xmx2048m -XX:-DisableExplicitGC -Djava.awt.headless=true -Dalfresco.home=/DATA/alfresco -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true"


กลับไปใช้ Crontab restart ทุกเช้า 5.30 น. เหมือนเดิม

https://hub.alfresco.com/t5/alfresco-content-services-forum/java-heap-space-issue-on-solr4/m-p/57364#M3201

2/08/2024

jquery-ui ให้ข้อความแสดงด้านบน Texbox เมื่อพิ่มพ์ autocomplete

 jquery-ui ให้ข้อความแสดงด้านบน Texbox เมื่อพิ่มพ์ autocomplete ถ้าไม่แก้ข้อความจะอยู่ข้างหลัง Box
ต้องแก้ ไฟล์ css ของ jquery-ui เช่น
jquery-ui-1.13.1-Custom.css
เพิ่ม z-index

  1. .ui-autocomplete {
  2.     position: absolute;
  3.     top: 0;
  4.     left: 0;
  5.     cursor: default;
  6.     z-index: 1500
  7. }