[완료] 파일 수정 시간과 date 불일치 해결 방법

yangkun의 이미지

리눅스에서 Jeus5 를 사용해 시스템 구축 중입니다.

[root@app2 12]# uname -a
Linux app2 2.6.18-53.11AXS3 #1 SMP Tue Aug 19 20:58:04 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

EditPlus 의 FTP 기능을 이용해 서버의 jsp 파일을 수정하고 나면
해당 jsp 파일을 요청할 때마다 컴파일이 수행 됩니다. (jsp -> java -> class)
이게 한번 수행이 되야 하는데 요청 시마다 수행 하니까 속도가 느려지고요

그래서 살펴보니 editplus 의 FTP 로 수정한 파일의 수정 시간이 미래로 설정 됩니다.
그래서 jeus 가 매 요청 마다 파일이 수정된걸로 판단해서 재 컴파일 하는 것 같습니다.

간단하게 테스트를 해봤는데요.

index.jsp 의 파일 시간을 "현재"로 셋팅 합니다.

[root@app2 12]# touch index.jsp

현재 시간은 이렇습니다.

[tmax@app2 12]$ date
2011. 02. 08. (E­) 09:13:08 KST

index.jsp 의 속성을 보면

[tmax@app2 12]$ stat index.jsp
File: `index.jsp'
Size: 36300 Blocks: 72 IO Block: 4096 AI¹Y ÆAAI
Device: 15h/21d Inode: 747520751 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 516/ tmax) Gid: ( 516/ tmax)
Access: 2011-02-08 17:06:22.423423441 +0900
Modify: 2011-02-08 17:06:22.423423441 +0900
Change: 2011-02-08 17:06:22.423423441 +0900

8시간 정도 뒤로 셋팅 되어 있습니다.

생성된 java 파일의 속성은

[tmax@app2 12]$ stat /usr/local/jeus5/jspworkdir/jeus_jspwork/_app2_servlet_engine1/_MyGroup/_eduland/_integrated/_skin/_12/_500_index_5fjsp.java
File: `/usr/local/jeus5/jspworkdir/jeus_jspwork/_app2_servlet_engine1/_MyGroup/_eduland/_integrated/_skin/_12/_500_index_5fjsp.java'
Size: 127969 Blocks: 264 IO Block: 4096 AI¹Y ÆAAI
Device: fd00h/64768d Inode: 10142462 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 516/ tmax) Gid: ( 516/ tmax)
Access: 2011-02-08 09:11:43.000000000 +0900
Modify: 2011-02-08 09:11:43.000000000 +0900
Change: 2011-02-08 09:11:43.000000000 +0900

현재 시간과 일치 합니다.

이 상태에서 해당 jsp 파일을 요청하면 매번 jsp -> java -> class
과정을 반복 하고 있습니다.

다른 서버에서는 touch 시 현재 date 와 일치하게 되는데.
이 서버에서만 이러는데 원인은 뭐고 해결방법은 뭐가 있을까요 ?

yangkun의 이미지

root 로 로그인 후

새로 디렉토리를 생성하고
vi a.txt
해서 파일을 생성하면
수정시각이 현재시각으로 설정 되지만

문제가 있는 디렉토리에서

vi a.txt
해서 파일을 생성하면
수정시각이 미래로 설정 됩니다.

stat .
해서 현재 디렉토리 정보를 보면
현재 디렉토리 자체의 수정시가이 미래로 설정되어 있습니다.

즉, 특정 디렉토리에서만 위와 같은 문제가 발생합니다.

May the force be with you...

yangkun의 이미지

특정 디렉토리가 다른 서버(NAS)에 존재해 mount 해 사용중이었는데,
그 서버의 시간 설정이 잘못 되어 있었네요.

ㅠㅠ ㅠㅠ

May the force be with you...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.