'2019/06/07'에 해당되는 글 5건

  1. 2019.06.07 tomcat9 on ubuntu18.04
  2. 2019.06.07 tomcat 자동 war 배포 막기
  3. 2019.06.07 electron ipc
  4. 2019.06.07 postgres db 속도 향상
  5. 2019.06.07 tomcat manager GUI
Programming/Java(Spring)2019. 6. 7. 16:26

$ sudo apt-get install tomcat9-admin

$ sudo vim /etc/tomcat9/tomcat-users.xml

  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-status"/>
  <user username="tomcat" password="password" roles="manager-gui,manager-script,manager-status"/>

 

war 디플로이 경로(tomcat manager 쓰면 상관없음)

/var/lib/tomcat9/webapps

 

 

+

2019.07.29

sudo vi /etc/tomcat9/tomcat-users.xml

sudo vi /usr/share/tomcat9-admin/manager/WEB-INF/web.xml

<multipart-config>
   <max-file-size>152428800</max-file-size>
   <max-request-size>152428800</max-request-size>
   <file-size-threshold>0</file-size-threshold>
</multipart-config>

sudo vim /usr/share/tomcat9-admin/manager/META-INF/context.xml

<Context antiResourceLocking="false" privileged="true" >
<!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
     allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
  <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
</Context>
Posted by 구차니
Programming/Java(Spring)2019. 6. 7. 15:59

해당 옵션이 true 라서 war 파일 넣어두고 서버 재시작 하면 배포 되어 버리는 듯

 

unpackWARs
Set to true if you want web applications that are placed in the appBase directory as web application archive (WAR) files to be unpacked into a corresponding disk directory structure, false to run such web applications directly from a WAR file. See Automatic Application Deployment for more information.

[링크 : http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Standard_Implementation]

[링크 : https://okky.kr/article/130341]

'Programming > Java(Spring)' 카테고리의 다른 글

mvn -P profile  (0) 2019.06.08
tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat manager GUI  (0) 2019.06.07
WARNING: An illegal reflective access operation has occurred  (0) 2019.06.05
spring에 angluar 통합하기  (0) 2019.06.04
Posted by 구차니
Programming/node.js2019. 6. 7. 15:34

node.js와 chromium 을 통합해 웹어플을 데스크탑 어플로 만들어 주는 녀석

크롬도 수정해서 require 쓸수 있게 하고

보안상의 문제로 별도의 express.js를 못쓰게 한다는데

아무튼 결국에는 node.js와 통신해서 웹과 무언가를 주고받는걸 찾아야 할듯

(근데 얘로 vscode를 만들었다는데 좀 쩌는 듯.. atom을 써봐야하나?)

 

[링크 : https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes]

[링크 : https://electronjs.org/docs/api/ipc-main]

[링크 : https://electronjs.org/docs/api/ipc-renderer]

'Programming > node.js' 카테고리의 다른 글

node.js Javascript heap out of memory  (0) 2019.06.19
node.js 용량 제한(?)  (0) 2019.06.18
electron.js  (0) 2019.06.03
npm-run-all 병렬 빌드 (실패)  (0) 2019.05.29
pdf 내용 추출  (0) 2019.05.27
Posted by 구차니

의외로 postgres 서버의 메모리 늘리는 것은 크게 영향이 없는 듯 하고

설정 파일에서 이것저것 고친거랑.. cpu 갯수 늘린게 영향을 주려나?

일단은 확실한 벤치를 한건 아니지만 ramdom_page_cost 늘린게 가장 큰 영향을 주는 듯

 

work_mem
As I mentioned earlier, memory allocation and management is a big part of performance-tuning PostgreSQL. If your system is doing a lot of complex sorts, increasing the sort memory can help the database optimize its configuration for your setup. This allows PostgreSQL to cache more data in memory while it performs its sorting, as opposed to making expensive calls to the disk.

random_page_cost
This setting essentially is the amount of time that your optimizer should spend reading memory before reaching out to your disk. You should alter this setting only when you’ve done other plan-based optimizations that we’ll cover soon, such as vacuuming, indexing, or altering your queries and schema.

These are just some of the optimizations you can make for database configurations, but there are plenty more. Now that you know how to tweak your database setup, let’s look at another area for investigation: vacuuming.

[링크 : https://stackify.com/postgresql-performance-tutorial/]

 

shared_buffers =  — Editing this option is the simplest way to improve the performance of your database server. The default is pretty low for most modern hardware. General wisdom says that this should be set to roughly 25% of available RAM on the system. Like most of the options I will outline here you will simply need to try them at different levels (both up and down ) and see how well it works on your particular system. Most people find that setting it larger than a third starts to degrade performance.


effective_cache_size =  — This value tells PostgreSQL's optimizer how much memory PostgreSQL has available for caching data and helps in determing whether or not it use an index or not. The larger the value increases the likely hood of using an index. This should be set to the amount of memory allocated to shared_buffers plus the amount of OS cache available. Often this is more than 50% of the total system memory.


work_mem =  — This option is used to control the amount of memory using in sort operations and hash tables. While you may need to increase the amount of memory if you do a ton of sorting in your application, care needs to be taken. This isn't a system wide parameter, but a per operation one. So if a complex query has several sort operations in it it will use multiple work_mem units of memory. Not to mention that multiple backends could be doing this at once. This query can often lead your database server to swap if the value is too large. This option was previously called sort_mem in older versions of PostgreSQL.

[링크 : https://www.revsys.com/writings/postgresql-performance.html]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postresql backup & recovery  (0) 2019.06.12
postgresql schema  (0) 2019.06.12
postgresql drop all tables  (0) 2019.06.05
postgresql import from csv  (0) 2019.06.04
postgresql password chg  (0) 2019.06.04
Posted by 구차니
Programming/Java(Spring)2019. 6. 7. 10:22

tt
0.00MB

에디터 바뀌면서 <> 들어가면 다 날려버려 내용이 안들어가네

어떻게 해야하지? -_-


[링크 : 
https://elfinlas.tistory.com/369]

[링크 : https://cpdev.tistory.com/110]

'Programming > Java(Spring)' 카테고리의 다른 글

tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat 자동 war 배포 막기  (0) 2019.06.07
WARNING: An illegal reflective access operation has occurred  (0) 2019.06.05
spring에 angluar 통합하기  (0) 2019.06.04
spring war와 war.original  (0) 2019.04.23
Posted by 구차니