얼마전에 성철이 형이 물어봐서 답해줬던 내용이다.

많은 개발자들이 애플리케이션 서버로 톰캣을 사용하는 경우에 스태틱 파일(html, css, js, 이미지)은 톰캣 앞에 아파치 웹 서버(Httpd)를 두어서 처리하게 하는 것이 좋다고 생각한다. 외부의 요청은 일단 Apache Httpd가 받고, 톰캣 내에서 처리할 자바 애플리케이션만 톰캣으로 다시 전달해서 처리하고 그 외의 리소스는 Apache Httpd가 직접 처리하게 만들어야 성능이 좋다고 생각한다. 자바로 만든 서버인 톰캣은 스태틱 파일 처리에서 Apache Httpd만 못하다는 것이 그 이유다.

하지만 톰캣과 Httpd의 개발자에 따르면 이는 개발자들이 잘못 알고 있는 미신이다. 아직도 톰캣 3를 사용하고 있는 것이 아니라면 말이다.

자세한 내용은 Myth or truth: One should always use Apache httpd in front of Apache Tomcat to improve performance?에 잘 나와있다. 지금은 스프링 소스의 직원이 된 아파치 톰캣과 Httpd 의 핵심 개발자들이 직접 작성한 내용이다.

톰캣은 5.5부터 Httpd의 native 모듈을 사용해서 스태틱 파일을 처리하는 기능을 제공한다. 이 경우 Httpd와 톰캣이 같은 모듈을 사용하는 셈이니 성능에서 차이가 날 이유가 없다. 실제 테스트 한 결과를 봐도 톰캣에서 아파치 Native 모듈을 사용하는 것이 순수하게 아파치 Httpd만 사용하는 것과 비교해서 성능이 전혀 떨어지지 않는다.

따라서 단지 스태틱 파일 처리의 성능만을 위해서라면 굳이 톰캣 앞에 Apache Httpd를 두는 것은 불필요하다. 오히려 메모리만 많이 먹고, 관리부담은 커지고, 불필요한 부하만 걸릴 뿐이다.

물론 Httpd의 다른 기능이나 모듈을 사용해야 할 필요가 있다면 그때는 Httpd를 앞에 두고 사용해야겠지만. 예를 들어 하나의 서버에서 PHP 애플리케이션과 자바 애플리케이션을 함께 사용하거나, Httpd 서버를 간단한 로드밸런싱을 위해서 사용해야 하는 경우라면 Httpd를 앞에 두고 톰캣을 연결해서 사용하도록 하면 될 것이다.

Related posts:

  1. 스프링 컨테이너에는 설정파일이 없다
  2. 파이썬 완벽 가이드 전자책
  3. Maven archetype 설정파일 자동생성기 – ArchetypeXmlWriter
  4. Spring 3.0 (59) 프로퍼티 파일 이용하기 – placeholder vs SpEL
  5. 유쾌한 이슈처리 재촉 메일
  6. Spring-OSGi 시작하기 – OSGi
  7. 당신은 고난받기 위해 태어난 사람
  8. Apache Tomcat Tips & Tricks from the Pros – 웨비나 소식
  9. Spring 3.0 (58) Static Class를 XML없이 빈으로 등록하기
  10. [토스3] 스프링 3.0.4 <mvc:default-servlet-handler/>를 이용해서 UrlRewriteFilter없이 깔끔한 URL을 만들기
  11. 태터툴즈 이틀 사용기

Facebook comments:

to “톰캣 앞에 아파치 웹 서버(Httpd)를 두어야 할까?”

  1. I’m impressed, I must say. Rarely do I come across a blog that’s both educative and amusing, and let me tell you, you’ve hit the nail on the head. The issue is something that not enough folks are speaking intelligently about. I am very happy I came across this during my search for something concerning this.

  2. Wonderful story, reckoned we could combine a few unrelated data, nonetheless actually worth taking a look, whoa did one understand about Mid East has got far more problerms at the same time

  3. Keep up the superb work , I read few content on this website and I conceive that your web site is real interesting and contains lots of good info.

  4. we came across a cool website that you just could appreciate. Take a appear for those who want

  5. here are some hyperlinks to web-sites that we link to since we consider they are really worth visiting

  6. You made some good points there. I did a search on the subject and found most individuals will go along with with your site.

  7. “Lean has been successfully implemented in service sectors such as banks, healthcare, education, governments, distribution and logistics, warehousing, insurance, post, and many more. How dare they call American Businesses Corrupt, look in the mirror. While Advil or Tylenol might be able to provide you with some temporary pain relief, they can cause stomach problems.It is a refreshing sight to see in Atlanta with the trees well-maintained by the service providers.Where Can We Avail Split system air conditioner?We all have got to know that the split system in Air conditioners is eventually the best selling Air conditioning choices. The loan is based on your employment verification. Sutter, well played.its Ghaziabad mba fees , is INR 3,06,230 for the 2 year program. From the production of your goods to the delivery of your products, you can have all the reports on your computer. And it is not just Mr. With the aid of an educated mental health specialist, some people find it possible to deal with their stress when they can keep it localized in their brains and emotions. With the sexual needs of men becoming more demanding by the day, women are willing to try out various types of sexiga underklader to turn them on like never before.”

  8. ” And making the right choice these days is becoming increasingly difficult owing to the number of schools, teaching methodologies & philosophies available to parents nowadays. To help yourself with quality equipment scrabble down your requirements and expectations, review its efficiency based on part load, inquire about the size and occupancy ratio. When this is the case, it is now left for the company or firm to know the percentage they would be able to push for their clients.To create them to be successful in lifestyle we move our youngsters to schools, institutions, higher education etc. If you have not shopped for them before and you are apprehensive about using them, here are a few things that can help you along the way. You see, banks are smarter than you realize, once you miss payments for 90 days they escalate the foreclosure process, which is called forbearance. You tense up a group of your muscles so that they are as tightly constricted as you can make them. A fast application and you might be carried out. Sutter, well played. There come the POS logistics systems which will keep track of all your business transactions.Before returning home, the child is received by the new man responsible for Roosevelt House, Eli. In fact, while doing my research I discovered that there are many online brokers who assist in the resale of cemetery plots.”

  9. ” It will harden once it dries.As the retail POS can be installed in your computer without having much difficulty, you can efficiently run your business without leaving your chair. Even they forget in order to complete their responsibilities or research what they learned in school.All of these items combined have a layering affect on credit worthiness. You can even apply aloe vera juice on the affected area in order to get instant relief. Among the other recreational activitiesprovided in these hotels, the tourist can enjoy the swimming pool, steam bath,indoor games, Jacuzzi and many more. The only difference is, you are on the hook for the mortgage payments, and not your landlord. By quitting their positions they can show America they are with us, and leave the International Terroristic Regulatory Agencies out to destroy us for their own personal fame and gain. The five star hotels in Goa provide the tourist with acontinuous room service for a period of twenty four hours with the restaurants,bars and the central AC facilities. You can relax your muscles with a techniques known as Progressive Muscular Relaxation (PMR) whenever you are feeling achy or a little tense. The tide is turning, it is going to be a blood bath and anyone supporting these agencies is going to have mud on their face and a destroyed political career, which is exactly what they will deserve. If your page is among the top positions on SERP (Search engine result pages), then you should try for the lower PPC positions on the page.”

  10. ” The ending is surprisingly bloody and originates from nowhere, and it begins with Otto in prison, stabbed the prisoner, who shanked Jax in the ear. They would also need to appear for the Uttar Pradesh State Entrance Examination 2017 (UPSEE- 2017), conducted by Dr.FACT 1: Qualifying for a mortgage is easier than you thinkDid you know that qualifying for a mortgage is just as easy as renting? In most cases the same qualifications apply. Not only application, but also the convergence of the principles and tools in synchronization in manufacturing and services is highly desirable. We then showed some of the son had the oppertunity to determine some of the Russians, the goods in cash, that they then use to get rid of the Russians, as well as undercover agent Potter. Cutler, it is the entire attitude there at all the regulatory agencies. Repairs to your property or automobile, medical or other emergencies, and just running low on money many days to a week or a lot more prior to your next pay check are some of the factors individuals will need a loan till payday. The trainings that these service providers underwent are to ensure that everything is in order as according to plan with zero tolerance for errors and accidents. ” ” Lean though started off in the manufacturing industry, is applicable and must in the service sector also. Some of the splendid Goa Beach resorts are whispering beachresort, silver sand and many more.S. The numbers are estimates mainly because of variations in closing costs, taxes, and insurance.”

  11. ” Keeping in mind the number of current job opportunities and salary, the entire Canadian movie sector can be divided into four categories: Motion PicturesAdvertisingAnimation MovieTV or Daily Soap The resurgence of the Canadian film industry- For a long period of time, Canadian cinema industry remained in the shadow of Hollywood. It could possibly save you thousands of dollars. They are going to play silent and deadly and absolutely push back these; inane, arrogant, leaps of faith, we know you are guilty prove you are not, confrontational, witch hunting, underhanded, vindictive, brain dead, moronic scum (That last one was interesting indeed, opinion only-simply my freedom of speech in ones and zeros). I am also calling for a fight in the courts and that every company fight the agencies on every single issue brought forth and to hang tough spend the money and draw swords to fight these evil monsters back to the gates of Hell. When this is the case, it is now left for the company or firm to know the percentage they would be able to push for their clients. Goa is a paradise that lures thetourist. I would prefer to be buried with my wife when we die and will be buried somewhere other than my childhood area.When you are running a small business, you have a very little capital to manage. ” ” Poison Ivy is a plant which is mostly found in North America. Article Tags: Home Remedies, Affected Area, Baking Soda, Relief From Thekkady is a beautiful picnic spot closer to Madurai in Tamilnadu, although it belongs to Idukki district of Kerala as part of Periyar Wild Life Sanctury nearer to Kumuly town, with a well equipped resort Hotels as many as 19, the large periyar dam lake providing boat ride to view the herds of elephants with their younger ones accompanying them, coming close by to the water front, for the visitors to see and enjoy, it is also declared a Tiger Reserve, travelers to reach Thekkady alighting Madurai International Airport at a distance of 114 km, or Kochi International Airport at 185 km, or else the Railway Station at Kottayam which is also 114 km away, Thekkady tour Packages are well sought after by tourists of all ages, because of its comforting climate throughout the year.MsoNormalTable” {mso-style-name:”Table Normal”; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:”"; mso-padding-alt:0in 5. With a 6.

  12. ” With a 6. These should act as the final verdict and help you put a nail on the school of your choice. This is because it can take on the form of any regular medical condition or injury.Learning Disability:A learning disability is nothing however the inability with the brain to approach and know the knowledge that has been presented towards the student. Many years later I decided to check on the value of the two remaining plots and I was very surprised at how much they had increased value. He also knows to not underestimate the Son, and comments in it to be very organized, to another police officer is about the wrong side of them.鈥?Have regular meetings together with your child鈥檚 tutor to acquire common updates about your child鈥檚 learning ability. In the 2017 edition of TIFF, 50 new Canadian films made their way. Beach resorts in Goa are locatedon the prominent beaches like Colva, Calangute, Anjuna, Baga, Miramar, Varcaand many more. With a weak dollar our US based companies have a chance to gain market share, yet with all the regulations in place we are being held back to the corporations of Europe.Job stability is very important, too. He agrees to become listed on forces with Roosevelt.”

  13. ” The numbers are estimates mainly because of variations in closing costs, taxes, and insurance.That sounds a little fantastic, but truth be told, banks don’t ever want to foreclose. The POS logistics come handy in fulfilling your need in this case. A fast application and you might be carried out. You see, banks are smarter than you realize, once you miss payments for 90 days they escalate the foreclosure process, which is called forbearance. In order to look your best in any type of sexiga underklader, choose the ones that fit your body to perfection.FACT 2: It takes money to borrow moneyThere is a catch-22 when it comes to owning your own home. These tax breaks are significant over the long haul. Another reason its Ghaziabad revieware good is because of its collaboration agreements with overseas universities and institutes to accelerate the knowledge sharing process. If everyone in these agencies wants to be the next Elliot Spitzer, move to NY, NJ or CT and try your luck in; ‘the eat you for lunch?, game of the Big Apple, cut-throat, dishonest world of politics and government corruption and they call the corporations of America corrupt, says who? It is utterly ridiculous for the people to turn a blind eye on government corruption and allow those who abuse governmental powers to shift the medias focus to the most noble entrepreneurs of this present period. A motivating fact is that items such as the nylonstrumpor look good on all women. You tense up a group of your muscles so that they are as tightly constricted as you can make them.”

  14. ” With the aid of an educated mental health specialist, some people find it possible to deal with their stress when they can keep it localized in their brains and emotions. Cemetery Plots As A Practical Real Estate Investment Business Articles | March 17, 2008 Many years ago, in one of his many flashes of investment brilliance, my father decided to purchase four cemetery plots; one for each of the members of my immediate family.Maintain the contraction for a few seconds – around three will be enough. The user-friendly system can be customized according to the needs of every business like restaurants, food chains, salons and other businesses.Fast online approval for cash loans with no credit check. Why are we doing this to ourselves? If we do not do something the courts will and when that happens we are sure going to look stupid in the eyes of the World as we miss an opportunity due over self confidence and mislead energy of the SEC and other regulatory agencies. Final Thoughts-Canadian film industry has matured a lot over the years and who knows it may outsmart Hollywood in popularity one day. And when this is the issue, it is going to affect the person or company making use of debt settlement without them getting out fully. By quitting their positions they can show America they are with us, and leave the International Terroristic Regulatory Agencies out to destroy us for their own personal fame and gain. The needs of every business client vary from time to time and it is important for these providers to be up to date with the current practices and offerings.Just as each and every body organ is important and has to be in perfect tandem with other organs, services are similar organs, which need to be perfect alignment with other organization operations. So, even if you have bad credit, you could still get approved.”

  15. ” At a time when millions and billions of sites are already up and running, it is of paramount importance that you optimize your site as per the latest guidelines so that your target customers find you every time when they look online for the products and services that you deal into. As the system works on unique software, the users can get many services such as menu programming and inventory import which can help you to run your business more smoothly and efficiently. Apply it warm on the affected area forming a thick layer of it.There is an article coming out in next months? Economist showing the US in a very bad light with regards to these issues.How is Institute of technology and Science Ghaziabad(ITS Ghaziabad) admissions, Posted by iesonline12 on February 5th, 2018The different courses of its Ghaziabadare NBA and NAAC accredited and over 8000 students pursue them in the group’s 8 state of the art institute’s spread across 4 campuses which are well equipped with modern facilities and have over 700 distinguished faculty members on their rolls. With a 6. A motivating fact is that items such as the nylonstrumpor look good on all women. Some of theprominent hotels in the region are Whispering Palms Beach Resort, Club MahindraVarca Beach Resort, Bogmallo Beach Resort, Hotel Holiday Inn Resort Goa HotelCidade De Goa, Hotel Ramada Caravela Beach Resort, Ramada Caravela BeachResort, Fort Aguada Beach Resort and many more. But with the advent of the modern science and technology, we can now keep track of all our business transactions through the retail POS system installed in your computer. When we make bulk purchases of these units from Wholesale HVAC equipment, it arouses the chances of getting one or two dysfunctional units. And when this is the issue, it is going to affect the person or company making use of debt settlement without them getting out fully. I am also calling for a fight in the courts and that every company fight the agencies on every single issue brought forth and to hang tough spend the money and draw swords to fight these evil monsters back to the gates of Hell.”

  16. very few sites that occur to be in depth below, from our point of view are undoubtedly properly worth checking out

  17. Here is an excellent Blog You might Discover Intriguing that we Encourage You

  18. check below, are some absolutely unrelated internet sites to ours, even so, they are most trustworthy sources that we use

  19. Every once in a even though we opt for blogs that we read. Listed beneath would be the most current internet sites that we opt for

  20. over the internet. You actually understand how to bring an issue to light and make it important.

  21. ” ?Under the environment act, the government has taken steps topreserve the beauty of the silver sand. Within the last few years, since I no longer live in the New York City area, I decided to get rid of the two remaining plots. Choosing the nylonstrumpor in vibrant colors such as red, wine, black, purple or even blue will lighten up his senses and increase his urge to have you by his side.50% mortgage your monthly income should be at least $11,000 and your monthly payments on existing debt should not exceed $900.FACT 2: It takes money to borrow moneyThere is a catch-22 when it comes to owning your own home. Online purchase is the right solution for the people who are looking for buying the Split system air conditioner.Posted by sanampuri353 on September 28th, 2017Finding the right school for your kids is of utmost importance.This, however, would be the Sons of anarchy, we all know and love, and I can not wait to depart that dig their hooks into me again. Make a comparison based on their respective offerings and then, pick the best one, which fits your needs and budget in the best manner possible.4pt;” mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10. These ailments can make studying tough but it would not have to be impossible to get hold of good marks. Yesterday in the Financial Times we read that there is a backlash coming as the Corporations unjustly persecuted and harassed are rising up.

  22. This is a very good tip particularly to those fresh to the blogosphere.

    Simple but very precise information… Thanks for sharing this one.
    A must read post!

  23. wow, awesome article.Much thanks again. Really Great.

  24. The details talked about within the post are some of the very best available

  25. Hello, I do think your site could possibly be having web browser compatibility issues. When I look at your site in Safari, it looks fine but when opening in I.E., it has some overlapping issues. I just wanted to give you a quick heads up! Apart from that, great website.

  26. Wow! Thank you! I always needed to write on my website something like that. Can I implement a fragment of your post to my blog?

  27. It’s very simple to find out any matter on net as compared to textbooks, as I found this paragraph at this website.|

  28. Looking forward to reading more. Great blog post. Keep writing.

  29. I have not checked in here for a while since I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend :)

  30. What’s Going down i am new to this, I stumbled upon this I’ve discovered It absolutely useful and it has aided me out loads. I’m hoping to contribute & assist other users like its aided me. Good job.

  31. although web-sites we backlink to below are considerably not related to ours, we really feel they’re actually really worth a go by way of, so have a look

  32. Here is a superb Weblog You might Locate Exciting that we Encourage You

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2017 Toby's Epril Suffusion theme by Sayontan Sinha