본문 바로가기
728x90
반응형
SMALL

톰캣13

tomcat clustering and load balancing with HAProxy - PART2 Tomcat: Clustering and Load Balancing with HAProxy under Ubuntu 10.04 - Part 2ReviewIn the previous section, we've set-up a simple environment containing a clustered Tomcat instances and HAProxy for load balancing. In this section, we will test our load balancing environment and explore various strategies to improve our setup. Table of ContentsSetting-up the Environment Download TomcatConfigure .. 2013. 12. 23.
tomcat clustering and load balancing with HAProxy - PART1 Tomcat: Clustering and Load Balancing with HAProxy under Ubuntu 10.04 - Part 1IntroductionIn this article we will explore how to setup a simple Tomcat cluster and load balancing using HAProxy. Our environment will consists of two Tomcat (latest version) instances running under Ubuntu Lucid (10.04 LTS). We will use sample applications from the built-in Tomcat package to demonstrate various scenar.. 2013. 12. 23.
Apache 서버를 Tomcat 앞에 두어야 하는가? 많은 개발자들이 애플리케이션 서버로 톰캣을 사용하는 경우에 스태틱 파일(html, css, js, 이미지)은 톰캣 앞에 아파치 웹 서버(Httpd)를 두어서 처리하게 하는 것이 좋다고 생각한다. 외부의 요청은 일단 Apache Httpd가 받고, 톰캣 내에서 처리할 자바 애플리케이션만 톰캣으로 다시 전달해서 처리하고 그 외의 리소스는 Apache Httpd가 직접 처리하게 만들어야 성능이 좋다고 생각한다. 자바로 만든 서버인 톰캣은 스태틱 파일 처리에서 Apache Httpd만 못하다는 것이 그 이유다.하지만 톰캣과 Httpd의 개발자에 따르면 이는 개발자들이 잘못 알고 있는 미신이다. 아직도 톰캣 3를 사용하고 있는 것이 아니라면 말이다.자세한 내용은 Myth or truth: One should al.. 2013. 12. 21.
리눅스에서 톰캣 일반 계정으로 실행 하기 Tomcat을 root 로 실행할 때의 문제점 root 권한으로 실행을 한다는 건 root 콘솔에서 startup.sh을 통해 톰캣을 실행시킨 것이다. 이때 문제점은 현재 데몬이 root 권한으로 떠있는 것이며, 이상태에서 사용자가 해당 사이트에 접속하면 그 사용자의 접근권한도 root 가 된다... 아파치는 root 로 실행이 가능하고 접속자의 권한은 nobody로 주지만 톰캣은 그렇지 않다. 톰캣은 무조건 데몬을 실행시킨 권한을 접속자에게 동일하게 준다. 문제점 1)업로드시 폴더에 퍼미션을 걸어놓아도 퍼미션에 영향을 받지 않고 프로그래밍만 되어 있으면 업로드가 된다. 접근 권한이 root 권한이기 때문에... 문제점 2)업로드 폴더 퍼미션에 실행권한을 빼도 파일업로드시 악의적인 코드를 심어두어 실행 .. 2013. 12. 21.
728x90
반응형
LIST